HTML Selected AttributeThe Selected is an attribute of the element, which is used to define the default selection in a dropdown-list. When any option uses this attribute, then that option should be pre-selected and displayed first, when the web page loads. SyntaxExample: The following example uses the Selected attribute in the tag with the Jaguar value. Output: Example 2: The following example uses the Selected attribute in the tag with the Pomegranate value. Output: Browser Support
Next TopicSimple HTML Pages
|