select
Description
Syntax
HTML
<select attribute-name="attribute-value"></select>
Attributes
Name | Value | Description |
---|---|---|
autocomplete | on | off | Specifies 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) |
disabled | disabled | empty | Specifies that the element represents a disabled control |
form | IDREF | Identifies a form with which to associate the element |
multiple | multiple | empty | Specifies that the element allows multiple values |
name | string | Name part of the name/value pair associated with this element for the purposes of form submission |
required | required | empty | Specifies that the element is a required part of form submission |
size | positive integer | Number 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
Links
Related
Elements
- !doctype
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdi
- bdo
- blockquote
- body
- br
- button
- canvas
- caption
- cite
- code
- col
- colgroup
- data
- datalist
- dd
- del
- details
- dfn
- dialog
- div
- dl
- dt
- em
- embed
- fieldset
- figcaption
- figure
- footer
- form
- h1
- h2
- h3
- h4
- h5
- h6
- head
- header
- hgroup
- hr
- html
- i
- iframe
- img
- input
- ins
- kbd
- label
- legend
- li
- link
- main
- map
- mark
- menu
- meta
- meter
- nav
- noscript
- object
- ol
- optgroup
- option
- output
- p
- param
- picture
- pre
- progress
- q
- rb
- rp
- rt
- rtc
- ruby
- s
- samp
- script
- search
- section
- slot
- small
- source
- span
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- template
- textarea
- tfoot
- th
- thead
- time
- title
- tr
- track
- u
- ul
- var
- video
- wbr