review: Add Form Labels task3
After the name field, add another input for email addresses. Set the type
attribute to "email"
, the id
attribute to "email"
, and the name
to "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">Name:</label>
<input type="text" id="name" name="user_name">
<label for="comment">Comment</label>
<textarea id="comment" name="user_comment"></textarea>
<input type="email" id="email" name="user_email">
<button type="submit">Submit Comment</button>
</form>
</body>
</html>
Comments
Post a Comment