Articles → HTML → Select Element In HTML
Select Element In HTML
Purpose
Syntax
<select>
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
..
..
..
<option>option n</option>
</select>
Example
<html>
<head>
<title>select Demo</title>
</head>
<body>
<form>
Fruits:
<select>
<option>Banana</option>
<option>Apple</option>
<option>Orange</option>
</select>
</form>
</body>
</html>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |
Posted By - | Karan Gupta |
|
Posted On - | Sunday, November 6, 2016 |
|
Updated On - | Sunday, December 3, 2017 |