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 trialvirginiachubo3
8,963 Pointson the button element created in the last step add type attribute submit
<!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"></textarea>
<button>Submit Comment</button>
<button type="Submit"></button></form>
I have tired the above its not working . If you are going to comment on this type exactly what needs to be done
<!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"></textarea>
<button>Submit Comment</button>
<button type="Submit"></button></form>
</body>
</html>
1 Answer
Ethan Rivas
9,979 Points- Ok the step of that challenge: On the button element created in the last step add type attribute submit:
This is what you have:
<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> <!-- This is the button with the type submit-->
<button type="Submit"></button> <!-- This doesn't have to exist -->
</form>
And you need something like this:
<form action="index.html" method="post">
<input type="text" id="name" name="user_name">
<textarea id="comment" name="user_comment"></textarea>
<button type="submit">Submit Comment</button> <!-- This is the button with the type submit-->
</form>