HTML bootcamp · Lab 16

A select dropdown

mediumForm Elements12 minLesson: Form Elements

Read the question, write HTML on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

Build a <select> named size with three <option>s: Small, Medium, Large.

A <select> is the compact way to offer one choice from a fixed list.

Output. A select named size with three options.

Examples

Example 1
Expected
<select name="size"><option>Small</option>…</select>
Hint
  1. <select name="size"> wraps the options.
  2. Each choice is one <option>.
Show correct code

Peek only after you have tried. You can still Check your own version.

<select name="size">
  <option>Small</option>
  <option>Medium</option>
  <option>Large</option>
</select>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.