HTML HTML Forms Choosing Options Create a Select Menu

Joseph Chauvin
Joseph Chauvin
3,977 Points

"Add a label element to the select menu with the text "Shirt Color:"" But I did everything right.

"Add a label element to the select menu with the text "Shirt Color:"" But I did everything right.

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">
        <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

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 42,580 Points

The task asks you to add a label element as discussed on this page