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!
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
Bolaji Salau
7,980 PointsAdd type attribute to submit button not accepting
When adding type attribute to button element in challenge task "question 5" am unable to complete task. code seem correct. Below is my button code " <button type="submit">Submit Comment</button>"
I get this error when I check my code "Bummer! You need to add a <button> element inside the <form> element"
1 Answer

Bolaji Salau
7,980 PointsFigured out the issue... I had my input tag well formed (<input></input>) which was not required for an input tag in the html form. Simply removing the closing </input> resolved the issue.