TRENDING TOPICS

×

<select> tag in HTML

The <select> tag is used to create a drop-down list in HTML documents.

Important Description

  • The <select> element used to define the available options in the list.
  • Open and close tag required of <select>.

Example of <select> tag

Result Look Like

<select> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<select> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

Attribute Value Description
autofocus autofocus Defines that the drop-down list should automatically get focus when the page loads
disabled disabled Defines that an option should be disabled
form form_id Defines one or more forms the select field belongs to
multiple multiple Defines that multiple options can be selected at once
name name Defines a name for the drop-down list
required required Defines that the user is required to select a value before submitting the form
size number Defines that the number of visible options in a drop-down list

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)