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

Walter Goins
Walter Goins
4,845 Points

Can you check this question out I believe the 4th step is bugged

I think that the fourth question on this is bugged. It's asking to add a submit a button with the text "Place Order" in the form.

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

That's the code that I wrote for this and it is not accepting it.

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

  </body>
</html>

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Walter.

You want to have something like this,

<form action="index.html" method="post">
      <h1>Shirt Order Form</h1>

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

What it's asking for is a slightly different type of input field called a submit. It has a type attribute and a value of Place Order which is the text that goes on the button. Without this, a form can't transmit any information.

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

Hope this helps