HTML HTML Forms Choosing Options Create a Select Menu

Nikki Fessenden
Nikki Fessenden
7,005 Points

Add a submit button with the text "Place Order"

I feel rather disheartened. I thought the button would work but it doesn't and I keep looking back at it and it looks okay. What have I done wrong? -Nikki

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="sumbit"> Place order</button>   
    </form>


  </body>
</html>

3 Answers

Antonio De Rose
Antonio De Rose
20,556 Points

2 errors in your code

one, you have not closed the select two, spelling submit, you have put the wrong way

see this

<!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> 
      </select>
      <button type="submit">Place Order</button>
    </form>

  </body>
</html>
Nikki Fessenden
Nikki Fessenden
7,005 Points

Oh, my gosh! Thank you so much Antonio De Rose. I didn't even realize.