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 trialceasaraguilar
3,641 PointsCan i get help with challenge 4 of 5 in the create a button element task. Thank you.
This is what I have but it keeps telling me Bummer! You need to add a <button> element inside the <form> element.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML Forms</title> </head> <body> <form action="index.html" method="post"> <input type="text" id="name" name="user_name"> <textarea id="comment" name="user_comment" > <button>Submit Comment</button> </form> </body> </html>
Rich Bagley
25,869 PointsHi Ceasar,
I have just managed to pass the challenge successfully based on this. I've just edited my answer. Can you check your code matches please?
Thanks
-Rich
1 Answer
Rich Bagley
25,869 PointsHi Ceasar,
You look to be missing the closing text area tag before the button:
</textarea>
EDIT BASED ON COMMENT: Your final code should look like this:
<form action="index.html" method="post">
<input type="text" id="name" name="user_name">
<textarea id="comment" name="user_comment"></textarea>
<button>Submit Comment</button>
</form>
Thanks
-Rich
ceasaraguilar
3,641 PointsThank You. That worked.
Rich Bagley
25,869 PointsNo problem, glad you got it sorted.
-Rich
Kevin Korte
28,149 PointsI marked Rich Bagley's answer as the correct one. Feel free to change it needed Ceasar Aguilar
Rich Bagley
25,869 PointsThanks Kevin.
ceasaraguilar
3,641 Pointsceasaraguilar
3,641 PointsSorry, It keeps telling me I need to add a button element inside the form element.