Jazzo.co.uk uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our Privacy Policy and our Terms & Condition.

HTML <option>

query_builder | Christopher Pisani

The HTML element <option> is the child element of <select>. Each <option> holds a pre-defined answer for user to choose from the drop-down list.

A simple example to better understand this element

Available Attributes

Attribute Values Functionality
disabled Disables the option but still shows dimmed.
label text Option description can be placed in label attribute or within the element itself.
selected Pre-selects an option
value text Value to use for selection