COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | SELECT
The select tag is used for making drop down box when users select from options.

SYNTAX

OPENING TAG CLOSING TAG
<select> </select>

Select Tag in HTML

<select> ... </select>

Example : select.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Select</title>
<body>
<form>

<select>
<option>Computer lectures</option>
<option>Lecture 1</option>
<option>Lecture 2</option>
<option>Lecture 3</option>
<option>Lecture 4</option>
<option selected>Lecture 5</option>
<option>Lecture 6</option>
<option>Lecture 7</option>
<option>Lecture 8</option>
<option>Lecture 9</option>
<option>Lecture 10</option>
</select>

</form>
</body>
</html>

The output on the web broswer

Select