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.