← CodePrimer
HTML
Beginner
Forms
Select dropdown
How do I make a dropdown menu?
select and option.
<label>
Course
<select name="course" required>
<option value="">Choose…</option>
<option value="web1">Web App 1</option>
<option value="web2">Web App 2</option>
</select>
</label>
Notes
Empty first option + required forces a real choice.
Keywords: select · option · dropdown
Related
HTML
HTML headings h1–h6
How do I create page headings?
HTML
Paragraphs and line breaks
How do I break text into paragraphs?
HTML
Hyperlinks with href
How do I make a clickable link?
HTML
Ordered and unordered lists
How do I make bullet or numbered lists?
HTML
HTML table structure
How do I display tabular data?
HTML
Image with alt text
How do I insert an image accessibly?