review: Add fieldsets and legends task4
Add another legend
element to the second fieldset
and give it the text "What's on your mind?"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Forms</title>
</head>
<body>
<form action="index.html" method="post">
<fieldset>
<legend>Tell us about yourself.</legend>
<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">
</fieldset>
<fieldset>
<legend>What's on your mind?</legend>
<label for="comment">Comment:</label>
<textarea id="comment" name="user_comment"></textarea>
</fieldset>
<button type="submit">Submit Comment</button>
</form>
</body>
</html>
Comments
Post a Comment