html:option

html:option — An option element in an HTML form.

Synopsis

html:option ::=

  • text

Attributes

Attributes:

  • disabled (enumeration)
    • “disabled”
  • selected (enumeration)
    • “selected”
  • value

Description

An HTML form “option” in a “select”.

Processing expectations

Suppressed. It's used by the user agent as part of the surrounding select element.

Attributes

None.

class

This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.

disabled

Indicates a control is unavailable

Enumerated values:
“disabled”

The element is disabled

lang

This attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.

onclick

Occurs when the pointing device button is clicked over an element.

ondblclick

Occurs when the pointing device button is double clicked over an element.

onkeydown

Occurs when a key is pressed down over an element.

onkeypress

Occurs when a key is pressed and released over an element.

onkeyup

Occurs when a key is released over an element.

onmousedown

Occurs when the pointing device button is pressed over an element.

onmousemove

Occurs when the pointing device is moved while it is over an element.

onmouseout

Occurs when the pointing device is moved away from an element.

onmouseover

Occurs when the pointing device is moved onto an element.

onmouseup

Occurs when the pointing device button is released over an element.

selected

Indicates if the option is initially selected

Enumerated values:
“selected”

Initially selected

style

This attribute specifies style information for the current element.

title

This attribute offers advisory information about the element for which it is set.

value

Specifies the default value for the control

Parents

These elements contain html:option: html:select.