HTML Interviews
HTML Interview
To create a list box, write following code
<select name="drop1" id="Select1" size="4" multiple="multiple">
    <option value="1">item 1</option>
    <option value="2">item 2</option>
    <option value="3">item 3</option>
    <option value="4">item 4</option>
    <option value="0">All</option>
This will create a listbox with 5 items. As multiple attribute value is specified as ="multiple" so it gives ability to select more than one item from the box by holding ctrl key or by dragging through items from the mouse.