The selected
attribute is a boolean attribute.
When present, it specifies that an option should be pre-selected when the page loads.
The pre-selected option will be displayed first in the drop-down list.
Tip: The selected
attribute can also be set after the page loads, with a JavaScript.
<option selected>
How to add HTML <option> Tag | HTML Tag |
How to Use of <option> in a <datalist> element: | HTML Tag |
How to Use of <option> in <optgroup> elements | HTML Tag |
What is HTML <option> disabled Attribute | HTML Tag |
How to add HTML <option> disabled Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> selected Attribute | HTML Tag |
How to add HTML <option> selected Attribute | HTML Tag |
What is HTML <option> value Attribute | HTML Tag |
How to add HTML <option> value Attribute | HTML Tag |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |