The selected attribute is a boolean on <option>. When present, that option is initially selected in a <select> (or listed under <optgroup> / <datalist>).
Without multiple on the parent <select>, only one option may have selected. For checkboxes and radios, use checked instead.
Baseline · Widely available.
Not deprecated and not experimental. Stable across modern browsers since about July 2015.
Default state, not a live mirror.
After the user changes the list, the HTML attribute does not rewrite itself. Read the live choice with option.selected or select.value; the attribute maps to defaultSelected.
Syntax
HTML Syntax
syntax.html
<option selected>…</option>
Boolean form: write the name alone. selected="" or selected="selected" means the same thing.
Values
Attribute Values
selected is boolean — presence turns the default selection on:
multiple — the select allows more than one choice.
Two selected options — HTML and CSS start chosen.
size — shows several rows so multi-select is obvious.
Submit — typically sends repeated langs values for each chosen option.
Edge Cases & Pitfalls
Most bugs come from treating selected like a live state, or marking two options in a single-select.
single
Only one selected without multiple
MDN: if the parent <select> is not multiple, only one option may have selected. Extra marks are invalid / UA-resolved.
live
Attribute ≠ current choice after click
Use option.selected or select.value for the live value. The attribute is the default (defaultSelected).
checked
Not for checkbox / radio
Those controls use checked. selected belongs on <option>.
disabled
Disabled options stay unselectable
A disabled option (or one inside a disabled optgroup) cannot be chosen, even if it was previously selected.
a11y
Always label the select
Pair <select> with a visible <label> so the default choice has clear context.
Compatibility
Browser Support
selected is a boolean HTML attribute on <option>. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
selected
Widely available since about July 2015. Supported across modern browsers for select / option lists.
98%Global support (approx.)
Google ChromeAll modern
Full support
Mozilla FirefoxAll modern
Full support
Apple SafariAll modern
Full support
Microsoft EdgeAll modern
Full support
OperaAll modern
Full support
Samsung InternetModern
Full support
Internet ExplorerLegacy support
Supported
selectedWidely supported
Bottom line: Safe to use for default option choices. Remember the single-vs-multiple rule and read live state from properties.
Remember
Key Takeaways
Role: mark which <option> is initially selected.
Boolean: presence means selected — no special value needed.
multiple: required before more than one selected is valid.
JS: use .selected / select.value for the live choice.
One line:selected sets the default option — not a continuous sync of the user’s later choice.
Frequently Asked Questions
On an option element, selected is a boolean that marks the option as initially selected when the page loads (or when the form is reset to defaults).
The option element, inside select, optgroup, or datalist. It is not used on checkbox or radio inputs — those use checked.
Only if the parent select has the multiple attribute. Without multiple, only one option in that select may have selected.
Yes. Presence means selected. Write selected or selected="". In JavaScript use option.selected = true or false for the live state.
The HTML attribute sets the default. After the user changes the list, read the live choice with the .selected property (or select.value). The attribute maps to defaultSelected.
Use an option with value="" and selected (often also disabled and/or required on the select) so the empty choice is the initial display.