select

select elements allow selection of one or more (if multiple) items from a list.

Content category

Pseudo-classes

N/A

Attributes

No note with name p.r.comp.lang.markup.html.attr.autocomplete found in vault public

  • disabled indicates that the control should be disabled.
  • form allows explicit association of the element with a form (using its id).
  • name specifies the name of the input control, and the name against which the value will be submitted. Without this, the value will not be included in submissions.
  • multiple specifies whether the input should allow selection of multiple values (usually by holding down a modifier key whilst clicking or dragging across the options) or a single option (usually from a dropdown menu).
  • required determines whether an empty value will pass validation.

References


Backlinks