HTML5 Beginner Forms · 1 min read

Select dropdown

Start the HTML5 learning path »

❮ HTML5 Home All Tutorials ❯

How do I make a dropdown menu?

select and option.

Example

Interactive preview available
HTML5 Example
<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>

Line-by-Line Walkthrough

Empty first option + required forces a real choice.

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share

Reactions

Loading reactions…