Skip to content
Related Articles

Related Articles

How to define a drop-down list in HTML5 ?

View Discussion
Improve Article
Save Article
  • Last Updated : 11 Jun, 2020

In this article, we define a Drop-Down List By using the <select> Element in the Document. This tag is used to create a drop-down list. The <select> tag contains <option> tag to display the available option of drop-down list.
Note: The tag is used in a form to receive user response.




<!DOCTYPE html> 
        HTML5: How to define a drop-down list?
<body style="text-align:center;"
    <h2>HTML5: How to define a drop-down list?
<p>Select one option from drop-down list:</p>
        <option value="GFG">GFG</option
        <option value="OS">OS</option
        <option value="DBMS">DBMS</option
        <option value="Data Structure"
            Data Structure 

Output : 

Supported Browsers are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!