16 lines
569 B
Plaintext
16 lines
569 B
Plaintext
In a Web form, the HTML <option> element is used to create a control representing an item within a <select>, an <optgroup> or a <datalist> HTML5 element.
|
|
|
|
Content categories:
|
|
None.
|
|
|
|
Permitted content:
|
|
Text with eventually escaped characters (like é).
|
|
|
|
Tag omission:
|
|
The start tag is mandatory. The end tag is optional if this element is immediately followed by another <option> element or an <optgroup>, or if the parent element has no more content.
|
|
|
|
Permitted parent elements:
|
|
A <select>, an <optgroup> or a <datalist> element.
|
|
|
|
DOM interface:
|
|
HTMLOptionElement |