HTML <select> tag
HTML <select> tag : Definition
• The HTML <select> element is used to create a drop-down list of option, that displays when an user clicks on the form and it allows to choose one from given list of option.
• The <select> element contains <option> tag to display the available option of drop-down list.
Html <select> tag example:
<!DOCTYPE html>
<html>
<head>
<title>select tag example</title>
</head>
<body>
<label class="paragraph" style="color: #000; font-size: 20px;">Course :</label>
<select>
<option>Select Option</option>
<option value="html">HTML</option>
<option value="java">JAVA</option>
<option value="perl">PYTHON</option>
<option value="C++">C++</option>
<option value="php">PHP</option>
<option value="php">MYSQL</option>
</select>
</body>
</html>
Output :