In our ongoing series of lessons on the components of HTML, we will focus on HTML select in this article. The HTML <select> element is used to define a selection list within a form. The selection list is displayed as a drop-down menu from which the user can select one or more options, depending on its attributes.

What is an HTML Select Tag?

The HTML <select> tag is used to create a dropdown list. It is also used in forms to collect user input. 

The <option> tag is used to display available options in a dropdown menu.


This will produce the following result:


Here's How to Land a Top Software Developer Job

Full Stack Developer - MERN StackExplore Program
Here's How to Land a Top Software Developer Job

An Example of Using the HTML <select> Tag With the <optgroup> tag


This will produce the following result:



The HTML <select> tag supports the following attributes:






Specifies that the list should be focused after the page loads



Specifies that the drop-down list should be disabled



Specifies one or more form



Specifies the number of visible options in a drop-down list



Specifies that the user must select the value before submitting the form.



Specifies that multiple values can be selected at a time



Defines the name for the drop-down menu.

Get skilled in HTML5 and CSS3 with the Full Stack Java Developer Master's Program. Click to check out the program details!


In this article, we briefly introduced HTML select tags. We demonstrated how the select tag can be used inside a form, as well as explained some of its attributes.  Whether you’re looking to break into the exciting industry of web development, or you’re a novice looking to advance your career, earning your certification is the best way to take the next step. Simplilearn’s Full Stack Java Developer program is a great way to expand your skillset and covers everything from back-end Java web developer technologies to MongoDB. Students learn everything from the basics to advanced techniques, and they also have the chance to test their new skills through hands-on exercises and projects.

If you have any questions, please feel free to ask them in our comments section, and our experts will answer them promptly.

Our Software Development Courses Duration And Fees

Software Development Course typically range from a few weeks to several months, with fees varying based on program and institution.

Program NameDurationFees
Caltech Coding Bootcamp

Cohort Starts: 17 Jun, 2024

6 Months$ 8,000
Full Stack Developer - MERN Stack

Cohort Starts: 24 Apr, 2024

6 Months$ 1,449
Automation Test Engineer

Cohort Starts: 1 May, 2024

11 Months$ 1,499
Full Stack Java Developer

Cohort Starts: 14 May, 2024

6 Months$ 1,449