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 trialblake littleton
14,255 PointsTask 1 not passing .. Creat a label for the email
I think I have the question right. I'm doing something wrong in the email label but I don't know what.
<!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">
<label for="mail">"Email:"</label>
<input type="email" id="mail" name="user_email">
<label for="name">"Name:"</label>
<textarea id="comment" name="user_comment"></textarea>
<label for="comment">"Comment:"</label>
<button type="submit">Submit Comment</button>
</form>
</body>
</html>
2 Answers
Angela Visnesky
20,927 PointsHi Blake! From looking at your code, I think your name label is missing. Also, the id on your email input should be "email" and not "mail". Your code should look something like this:
<form action="index.html" method="post">
<label for="name">Name</label>
<input type="text" id="name" name="user_name">
<label for="email">Email:</label>
<input type="email" id="email" name="user_email">
<label for="comment">Comment:</label>
<textarea id="comment" name="user_comment"></textarea>
<button type="submit">Submit Comment</button>
</form
The code challenges are very specific. I hope this helps!
Daniel Hawthorne
3,288 PointsI believe that the for tag should be equal to the name tag I.E.
<label for="user_email">"Email:"</label>
<input type="email" id="mail" name="user_email">