HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML selected Attribute

HTML selected Attribute

 

 

The selected attribute is a boolean attribute. It specifies that an option should be pre-selected when the page loads when the selected attribute is present. The pre-selected option will be displayed first in the drop-down list.

 

Used With:-

 

Element Attribute
option selected

 

Syntax:-

 

Its syntax is:- < element selected>

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML