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

matteo boni
matteo boni
5,087 Points

submit button

Add a submit button with the text "Place Order".

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 from</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="blue">blue</option>
        <option value="green">green</option>
        <button type="submit">place order</button>

    </form>

  </body>
</html>

2 Answers

anil rahman
anil rahman
7,786 Points

You are missing a closing tag

</select>
matteo boni
matteo boni
5,087 Points

what is anil ?

Many thanks

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

Anil is correct. They mean the closing select tag to be more specific.

</select>
anil rahman
anil rahman
7,786 Points

Sorry i did add the select tag to tell you but it got removed from my earlier comment :P

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

Ahh I see it! I added three back-ticks ``` before and after the code so that it will show up. Anytime you add a code snippet, no matter how small, be sure to surround it in the back-ticks otherwise it won't show up properly. Checkout the markdown cheatsheet for a refresher if needed. You can also preview your comment to make sure it's displaying how you want before you post the comment. :)