Registration Form
Please fill out this form with the required information
Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Account type (required) Personal BusinessPlease fill out this form with the required information
Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Account type (required) Personal BusinessHi can someone help me please
Can you please link to the challenge you are doing and your code so far.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
Please fill out this form with the required information
Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Account type (required) Personal Business ```<!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'>
<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
<label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
<label for="email">Enter Your Email: <input id="email" type="email" required /></label>
<label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
</fieldset>
<fieldset>
<legend>Account type (required)</legend>
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" checked /> Personal</label>
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business</label>
</fieldset>
<fieldset></fieldset>
<fieldset><label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /><a I accept href="https://www.freecodecamp.org/news/terms-of-service/" the terms and conditions></a></label></fieldset>
<input type="submit" value="Submit" />
</form>
</body>
</html>
Thanks for posting your code. Can you link to the step you are stuck on so we can have a look. I assume you are doing FCC Building a registration form. You need to link to the step number.
Yes, I am doing FCC Building a registration form.
Step 31
Add the text I accept the terms and conditions immediately after the input element in the newly added label. Then link the text terms and conditions to the following location:
Example Code
<a I accept href="https://www.freecodecamp.org/news/terms-of-service/" the terms and conditions></a>
You have gone a bit wrong here. Look at the instructions. Add the text after the input element in the label, then put anchor tags around the words “terms and conditions” only. You don’t put any of the text inside the anchor tags. Can you see from your opening anchor tag that you have inserted the text inside it?
I will link to the step 31 here. Please remember to do this when opening a topic.
Ok I won’t forget .
But it told me You should add I accept the terms and conditions text to the label following the third fieldset
You have put the text in the right place but the syntax of your anchor tags is wrong. You don’t put the text inside the anchor tags. You wrap the anchor tags around the text as stated.
<a href ="url" >text to be clicked</a>
Like this
<fieldset><label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /><a href="https://www.freecodecamp.org/news/terms-of-service/" I accept the terms and conditions></a></label></fieldset>
Or like this
<fieldset><label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /><a I accept href="https://www.freecodecamp.org/news/terms-of-service/" the terms and conditions></a></label></fieldset>
Hi,
The first one is a little close. Just make sure your opening a
tag has a >
. the text I accept
should not be inside a
element, move it completely outside the a
tag. And the text terms and conditions
is in the right place, move the
outside the anchor tag as well.
I don’t think you need to wrap all of it in a fieldset element, so remove that.
Good luck!