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 trialmalcolm mowlam
3,856 Pointschallenge task 3 of 4 can anybody please help with add input for email addresses set type attribute to "email" id="email
add input for email addresses set type attribute to "email" id="email" and name=user_email
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Forms</title>
</head>
<body>
<form action="index.html" method="post"><label for="name"_id>name:</label>
<input type="text" id="name" name="user_name"><textarea><input type="email" id="email""name"="user_email"</textarea>
<textarea id="comment" name="user_comment"></textarea><label for="comment"_id="comment":</label>
<button type="submit">Submit Comment</button>
</form>
</body>
</html>
1 Answer
Steven Parker
231,269 PointsYou're close, but:
- the input should not be enclosed in a "textarea"
- the input tag needs to be closed with a ">" symbol
- the attribute "name" should not be in quotes
- the attribute should be separated from the previous value with a space
<textarea><input type="email" id="email""name"="user_email"</textarea> <!-- original -->
<input type="email" id="email" name="user_email"> <!-- corrected -->
Also, the challenge let it slip by, but I think the labels are intended to be placed before the inputs that they go with.