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 Form Basics Create a Submit Button

Daniel Schwemmlein
Daniel Schwemmlein
4,960 Points

why does it always say that I have to add the <button> tag into the <form> tag and when I try it I get another error?

Its in html forms. the 2nd to last question of the challenge. I'm supposed to create this button after textarea and i did that. I put exactly the same thing as the guy in the video did but it always marks it as wrong. I just put the button tag, then the text and then I closed it. Like this <button>Submit Comment</button> That was what they asked and I don't understand why it won't recognize that. Guess I have to switch browsers again. That shouldn't happen here. I pay good money every month so I expect things to work

David Kilgallon
David Kilgallon
6,697 Points

Can you print your code that you are entering for me. just wrap your code in 3 backsticks (the key on your keyboard under the esc key), refer to the markdown cheatsheet, its more than likely something very simple I have had problems like this before.

once I can see the exact code you are putting I may be able to help.

2 Answers

David Kilgallon
David Kilgallon
6,697 Points

Try entering the following:

<button type="submit">Submit Comment</button>

This just tells the web page that the button you are using is going to perform a submit action when clicked.

Hope this helps buddy.

Daniel Schwemmlein
Daniel Schwemmlein
4,960 Points

ok I put <button>Submit Comment</button> Still nothing. hm. its probably just me. maybe I have to try it with firefox. right now I'm using chrome