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

Submit Button Challenge

The challenge task states to "Add a submit button with the text "Place Order".

I can see the submit button in the Preview with Place Order but I keep getting it wrong.

I also set the input type to 'Submit'. I can still see it in Preview but keep getting it wrong.

What am I missing?

<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>

 <input type="button" value="Place Order">

</form>

4 Answers

I think you need

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

You don't make the button in a input tag The button has its own tag

You should add "submit" instead off an "button" type like this:

<input type="submit" value="Place Order" >

Hope that helps. Mike

Wow fast answer! That worked, thank you!

lol yeah I literally just did a form challenge so it was fresh on my mind.

The type should be set to submit. <input type="submit" value="Place Order">