HTML HTML Forms Choosing Options Create a Select Menu

Maria H
Maria H
6,737 Points

You don't seem to have any <option> elements within the <select> element. Repeat error code, not sure what is missing.

Thanks for reading, not sure what I have done wrong!

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>

    <form action="index.html" method="post">

      <h1>Shirt Order Form</h1>
  <label for="Shirt color">shirt color</label>    
  <select id="color" name="shirt_color">
      <optgroup label="shirt color">
       <option value="red">red</option>
       <option value="yellow">yellow</option>
       <option value="purple">purple</option>
       <option value="blue">blue</option>
       <option value="green">green</option>
       <option value="orange">orange</option></optgroup>
      </select>

    </form>
  </body>
</html>

1 Answer

Brendan Whiting
MOD
Brendan Whiting
Front End Web Development Treehouse Moderator 82,568 Points

For this challenge, it seems like they need you to put the <option> tags alone without using an </optgroup>.