HTML HTML Forms Choosing Options Create a Select Menu

Changjoon Song
Changjoon Song
Python Web Development Techdegree Student 7,325 Points

I'm keep being told that the <button> has to be within the form...

Am I missing something here? As far as I can see, my button attribute is within the form.

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="color">Shirt Color:</label>

        <select id="color" name="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>

       <button type="submit">Place Order</button>

     </form>

  </body>
</html>

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,519 Points

You need a closing select tag after the final option