Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML select Tag

HTML select Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <select> tag

HTML <select> tag is used to create a drop down list with multiple options. The <option> element is nested within <select> tag for defining options in a list.

The <optgroup> element can be used for grouping related options in a list.

If you want to send data to server then use <select> tag within <form> element.



Following are some specifications about the HTML <select> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Input


<!DOCTYPE html>
	<title>HTML select Tag</title>
			background-image: url("india.jpg");
			background-size: cover;
			background-position: center;
			height: 100%;
			width: 100%;
			background-repeat: no-repeat;
			 position: fixed;
			 top: 0;
			 left: 0;
	<div class="img">
 <h2>Example of select tag</h2>
 	<label>Choose your Favorite city in India</label>
 		<option>New Delhi</option>
Test it Now


HTML select tag


Tag-specific attributes:

Attribute Value Description
autofocus autofocus This attribute let automatically focused the drop-down list on page load.
disabled disabled It is used to disable the control and user cannot interact with the drop-down list.
form form-id It specifies one or more forms, to which select belong to.
multiple multiple If it sets then a user can select multiple options from the list.
name name It determines the name for the drop-down list.
required required If it specified, user must select that field before submitting the form.
size number It specifies the visible number of options in the list.

Global attribute:

The <select> tag supports the global attributes in HTML.

Event attribute:

The <select> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML small Tag

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf