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 The Button Element

Create a Submit Button Suggestion?

For the HTML Forms course, I noticed something for the code challenge "Create a Submit Button". In the 2nd to last task, it tells you to create a button tag with the text "Submit Comment" and to put this syntax AFTER the textarea tags. I've done that multiple times and finally decided that maybe I should put the button tags BEFORE the textarea tags....which I did, and that got me to the next task. Thought I would throw that out there in case anyone was having issues.

1 Answer

Steven Parker
Steven Parker
231,271 Points

Creating the button element after the textarea element will satisfy that task, but only if the texarea element is complete.

Unlike "input" elements, which are "empty elements", the textarea element requires an end tag. If you left the textarea element incomplete, that could cause problems in passing the remaining steps.

I’m sorry that I wasn’t more thorough with my topic. I did put that text between the tags. It just didn’t go through to the next task unless I put the entire syntax before the text area tags.

Steven Parker
Steven Parker
231,271 Points

Stephen Chamroeun — I suspect the actual issue was an incomplete textarea element.
I have revised my answer to describe the situation more clearly..