<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dropdown List</title>
</head>
<body>
<select>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</select>
</body>
</html>
Definition:-
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dropdown List</title>
</head>
<body>
<select>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</select>
</body>
</html>
Definition:-
Select and option tag
- <select> tag is used to create dropdown list.
- It can select only one item at a time in default mode(without adding any attribute (multiple)).
- <option> tag which contains the name of the item should written inside the <select> tag.
- Number of <option> tags can be added in single <select> tag.
HTML:- Drop-down list
Reviewed by Network security
on
April 30, 2019
Rating:
No comments: