Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,884 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.