COMPUTER SCIENCE AND ENGINEERING
WEB TECHNOLOGY
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Choose correct code for drop down listbox
|
<Listbox><option selected>CPU</option><option>RAM </option></Listbox>
|
|
<select multiple><LI selected>CPU</LI ><LI >RAM </LI ></select>
|
|
<select multiple><option selected>CPU</option><option>RAM </option></select>
|
|
<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.