One possibility
option

The option element provides one possible option from a list of possibilities.
This element may be used within either a datalist element or a select element.
Properties
- value
- When present, this is the value that will be used for submission when this option is selected by the user.
- When not present, the text of the option will be used for submission when this option is selected by the user.
- disabled
- The input should be visible, but unchangable. Its value will not be included in the submission.
- selected
- When present on an option, it is in the "selected" state.
Examples
form {
Choose your preferred color scheme:
select *color-preference {
option *value='#f00' red
option *value='#0f0' green
option *value='#00f' *selected blue
}
}
form {
Your favorite summertime movie:
datalist #movies {
option *value='American Graffiti'
option *value='Dirty Dancing'
option *value='Caddyshack'
option *value="National Lampoon’s Vacation"
option *value='Dazed and Confused'
option *value='Stand by Me'
}
input #movie-pick *list=movies
}
Complements
- option
- The option element provides one possible option from a list of possibilities.
- option
- The option element provides one possible option from a list of possibilities.