select
I. Description
The HTML <select>
element
is used in conjunction with the <option>
elements to create a dropdown menu
from which users may select one of the defined options.
See also the 'option'
(<option>
) element.
See also the 'optgroup'
(<optgroup>
) element.
II. Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Example HTML Page</h1>
<p>
Below is an example of a dropdown menu created
using the select, and option html elements.
</p>
<h2>Select Appointment Day</h2>
<select label="Appointment Days">
<option disabled>Sunday</option>
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
<option>Thursday</option>
<option>Friday</option>
<option disabled>Saturday</option>
</select>
</body>
</html>