HTML HTML Forms Choosing Options Create a Select Menu

add the following option to the select menu

add the following option to the select menu

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>
   <select id="color" name="shirt_color">
     <option value="red">red</option>  
     <option value=" yellow"> red</option>
     <option value="purple">  red</option>
     <option value= "blue">  red</option>
     <option value= "green">  red</option>
     <option value= "orange"> red</option>
      </select>
    </form>

  </body>
</html>

1 Answer

Steven Parker
Steven Parker
172,223 Points

The "value" attribute strings should not have spaces in them. Also, the words inside each option should match the value (these are all "red").