<!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>
<label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required/> I accept the terms and conditions<a href="https://www.freecodecamp.org/news/terms-of-services/">terms & conditions</a></label>
<input type="submit" value="Submit" />
</form>
</body>
</html>
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.
You should make the terms and conditions
part of the text into a link. Do not add terms & conditions
as the link text.
<label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required/> I accept the terms and conditions<a href="https://www.freecodecamp.org/news/terms-of-services/">terms & conditions</a></label>
Outputs this:
I accept the terms and conditionsterms & conditions
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.