HTML and CSS Reference
In-Depth Information
Name
select
Synopsis
<select> . . . </select>
Defines a multiple-choice menu or a scrolling list. It is a container for one or more option or
optgroup elements.
Usage
Categories:
Flow content, phrasing content, interactive content, palpable content, and “listed, labe-
lable, submittable, and resettable form-associated element”
Permitted contexts:
Where phrasing content is expected
Permitted content:
Zero or more option or optgroup elements
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
autofocus ( autofocus="autofocus" in XHTML)
Not in HTML 4.01 . Indicates the control should have focus (be highlighted and ready for
user input) when the document loads.
Search WWH ::




Custom Search