Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms Form Basics Create a Submit Button

task 5 of 5: Stage 1 Form Basics

I don't know how to do this last step.

2 Answers

Hi Lauren, it's fairly simple. What you're doing is adding to your code in step 4, which had you add a button:

<button>Submit Comment</button>

It wants you to add the type attribute after the opening tag: <button — note that I've removed the greater than >, and that is where you'll start with the type attribute, which gets the value of submit.

It's identical in how you did with the <input> and <textarea> elements.

Hope this helps you out. :smiley:

could you maybe post the passing code?

Lauren, if you're still having trouble, could you give me the code you've tried so far, and I'll provide a corrected version and explain it a little more for you.

<button>submit</button> you need to add type attribute with the value "submit" inside <button> element. like this <button type="submit">submit</button>