HTML & CSS: Forms 2
A list box is similar to a drop-down list, the difference being that a list box displays several items at a time. You use a 'select' element to set up a list box, and you assign an 'id'. The 'selected' attribute can be used. Use the 'size' attribute to indicate how many list items will display at any time. In the example below, size is set to 4. Including the 'multiple' attribute allows the user to select more than 1 item from the list by ctrl-clicking the additional items. (But putting more than 1 salad dressing on a salad is generally not recommended.)
Create a drop-down list with 4+ elements. Use the 'selected' property. Also, create a list box with 4+ elements, and include the 'multiple' property.