Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Add opening and closing <div> tag for creating a section(division) for the First name. Use the <label> tag within the <div> tag and put a caption First Name in between the opening and closing <label> tag

Add opening and closing <div> tag for creating a section(division) for the First name.
Use the <label> tag within the <div> tag and put a caption First Name in between the opening and closing <label> tag
by

2 Answers

sonalvidu
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Example</title>
</head>
<body>
<!-- Section for First Name -->
<div>
<label for="firstName">First Name:</label>
</div>
</body>
</html>
sonalvidu
<!-- Section for First Name -->
<div>
<label for="firstName">First Name:</label>
</div>

Login / Signup to Answer the Question.