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
Khuram Habib
2,845 PointsCan someone please help me on this task please. HTML FORMS
Challenge Task 5 of 5 On the button element created in the last step, add a type attribute with the value "submit".
<form action="index.html" method="post"> <input id="name" name="user_name" type="text"> <textarea id="comment" name="user_comment"></textarea> <button>"Submit Comment" type="submit"</button>
Keeps alerting = Bummer! You need to add a type attribute to the button element
3 Answers
andren
28,558 PointsThe type attribute has to be within the button's starting tag like this:
<button type="submit">"Submit Comment"</button>
Not within the text area of the button like it is in your solution.
Khuram Habib
2,845 PointsOh rite Great stuff Thankyou.
eunice phiri
5,352 Points<button type="submit">Submit comment</button> i don't know what is wrong with my code.