Learn HTML Forms by Building a Registration Form - Step 30

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

/* file: index.Ext.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'>
      <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>
<label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" name="account-type" required /> terms and conditions <label> <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a></label>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
        <label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /> I accept the terms and conditions</label>
      </fieldset>
      <fieldset></fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>
/* file: styles.Ext.css */
<!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>
<label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" name="account-type" required /> terms and conditions <label> <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a></label>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
        <label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /> I accept the terms and conditions</label>
      </fieldset>
      <fieldset></fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

Your mobile information:

M2101K6G - Android 13 - Android SDK 33

Challenge: Learn HTML Forms by Building a Registration Form - Step 30

Link to the challenge:

The terms and conditions link worked, but there are two similar cells in the form.
What am I doing wrong?

“You should use an a element to link to the terms and conditions.”

I’m looking at the directions,

To finish this fieldset off, link the text terms and conditions in the third label to the following location:
(fcc link)

So, you have the opening ‘label’ tag, and you have the ‘input’ element. And you have the ‘I accept’ text. If you’ve gotten this far, then I think you know how to put in an ‘a href’ / ‘/a’ link. So you just have to ask yourself – where would you put the link so people know it’s linking to the terms and conditions that they’re agreeing to?

1 Like

(It looks like you have “terms and conditions” twice; and you need it only once. And it should be a link. Sorry, I was not very clear earlier.)

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.