/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: selected

[this page | pdf | back links]

The HTML selected attribute indicates that an <option> element should be pre-selected when the page loads.

 

Valid attribute values (when used with <option> elements) include:

 

Value

Description

selected

Option should be pre-selected when page loads

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile