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

Step-3 Why are answer being wrong?

<!DOCTYPE HTML>
<html lang="en">
<html>
<head>
<body>
<title>Registration Form</title>
<h1>My Registration Form</h1>
<form>
<div>
<label>First Name:</label><br>
<input type="text" name="fname"/>
</div>
</form>
</body>
</head>
</html>
by

1 Answer

iamabhishek
Here is the correct answer:

<!-- Registration form project -->
<!DOCTYPE HTML>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h1>My Registration Form</h1>
<form>
<div>
<label>First Name</label>
<input type="text" name="fname" />
</div>
<br/>
</form>
</body>
</html>

You missed adding the <br/> tag, and you also had the closing </head> tag wrong and the <title> tag is also inside the BODY.

Login / Signup to Answer the Question.