<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>Registration Form</h1>
<p>Please fill out this form with the required information</p>
<form method="post" action='https://register-demo.freecodecamp.org'>
<!-- User Editable Region -->
<fieldset>
<label>Enter Your First Name:<input id="first-name" for="first-name"></label>
<label>Enter Your Last Name:<input id="last-name" for="last-name"></label>
<label>Enter Your Email:<input id="email" for="email"></label>
<label>Create a New Password:<input id="new-passeword" for="new-password"></label>
</fieldset>
<!-- User Editable Region -->
<fieldset></fieldset>
<fieldset></fieldset>
</form>
</body>
</html>
They asked you to add an input element which looks like this <input>
and they said to add it in each label and to make sure there is one space between the colon : character and the new input element.
<fieldset>
<label>Enter Your First Name:</label><input>
<label>Enter Your Last Name:</label><input>
<label>Enter Your Email:</label><input>
<label>Create a New Password:</label><input>
</fieldset>
In this case you added the input element to right of the label.
But what did the instructions say?
Nest an input element within each label
The word “nest” and “within” should tell you that they meant to add the input in between the label’s starting tag and ending tag. As for where, the instructions say exactly where.
Sorry i stil don’t understand it i also tried this
<fieldset>
<label>Enter Your First Name:<input></label>
<label>Enter Your Last Name:<input></label>
<label>Enter Your Email:<input></label>
<label>Create a New Password:<input></label>
</fieldset>
That’s perfect. I’m glad you got it.
I’ve removed the code though as we don’t want to have solutions posted in the forum as it spoils the learning for others.
Thanks for your understanding and keep coding!
Becoming a moderator doesn’t actually have anything to do with finishing the courses. I have not finished them for eg.
It’s just about being a helpful person in the forum and being responsible with the rules etc.