HTML HTML Forms Choosing Options Create a Select Menu

Carlos Campos
Carlos Campos
Full Stack JavaScript Techdegree Student 6,425 Points

My "button" is inside the <form> attributes. Dont know what im supposed to do

the error message keeps telling me thats my <button> needs to be inside the <form> attributes, but it is?

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="orane">Orange</option>

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

    </form>

  </body>
</html>

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,335 Points

This happens quite often in this challenge. You need a closing select tag between your last option and the button.