MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Choose correct code for drop down listbox
A
<Listbox><option selected>CPU</option><option>RAM </option></Listbox>
B
<select multiple><LI selected>CPU</LI ><LI >RAM </LI ></select>
C
<select multiple><option selected>CPU</option><option>RAM </option></select>
D
<select multiple><Item selected>CPU</Item><Item>RAM </Item></select>
Explanation: 

Detailed explanation-1: -The <select> element is used to create a drop-down list. The <select> element is most often used in a form, to collect user input. The name attribute is needed to reference the form data after the form is submitted (if you omit the name attribute, no data from the drop-down list will be submitted).

Detailed explanation-2: -Multiselect dropdown is very useful to allow the user to select multiple options in a selectbox. Multiple selections of the dropdown list can be added by using multiple attribute in the <select> tag. But in this case, multiple options can be selected by holding down the control (ctrl) button of the keyboard.

There is 1 question to complete.