HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

select

Description

The select element for HTML represents a control for selecting among a list of options.

Syntax

HTML

<select attribute-name="attribute-value"></select>

Attributes

Global

NameValueDescription
autocompleteon | offSpecifies whether the element represents an input control for which a UA is meant to store the value entered by the user (so that the UA can prefill the form later)
disableddisabled | emptySpecifies that the element represents a disabled control
formIDREFIdentifies a form with which to associate the element
multiplemultiple | emptySpecifies that the element allows multiple values
namestringName part of the name/value pair associated with this element for the purposes of form submission
requiredrequired | emptySpecifies that the element is a required part of form submission
sizepositive integerNumber of options meant to be shown by the control represented by its element

Examples

1 · autocomplete

2 · disabled

3 · form

4 · multiple

5 · name

6 · required

7 · size