Create a selection list to retrieve user input. Place within a form element to retrieve user input.
Attribute
Description
class
Classify or name your elements. For instance, if you classify several paragraph elements the same name, using CSS it is possible to give them all the same styles in one line of code.
dir
Change the display of text from left to right, or right to left. Very useful in language translation.
disabled
Disables an element from being used. It is still displayed but any scripts associated with it are disabled.
id
Specify an ID for your elements.
multiple
Allows users to select more than one option of input and select forms.
lang
Define the language to display your element in. Here's a link to the abbreviations of languages. http://www.oasis-open.org/cover/iso639a.html
name
Choose a name for an element. Names can be used with other web programming languages to unify your site or run scripts obtaining user info.
size
Add size to varying elements, usually indicates font size, or corresponders to the number of characters to be displayed with form elements.
style
Used to create inline styles such as CSS.
tabindex
Numbers elements in a tab order, allowing for manipulation of what happens when the user presses the "Tab" key.
title
Places a "pop-up" title for an element upon mouse over. Similar to "help" pop-ups in word programs.
Code:
How many hours of sleep do you get a night?
<select multiple size="3">
<option>4</option>
<option>6</option>
<option>8</option>
<option>10</option>
<option>12</option>
</select>