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 triallauren carr
1,209 Pointstask 5 of 5: Stage 1 Form Basics
I don't know how to do this last step.
2 Answers
Dustin Matlock
33,856 PointsHi 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.
MUZ140727 Innocent Kaseke
5,012 Points<button>submit</button> you need to add type attribute with the value "submit" inside <button> element. like this <button type="submit">submit</button>
lauren carr
1,209 Pointslauren carr
1,209 Pointscould you maybe post the passing code?
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsLauren, 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.