Learn HTML by Building a Registration form step 31

My code:

<!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>
....... ........ ........

In the step 31, FCC ask to: 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:

https://www.freecodecamp.org/news/terms-of-service/. But when I put my solution, it didn´t work. I have tried e explored another ways but nothing solves the problem. Any help would be great.
1 Like

Where is your modified code?

You should do that mentioned above.

Thanks for the reply! I did exactly what was asked, but none of my solutions worked out.

<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>

Link your topic to the challenge step. Or create a new topic to the challenge step by pressing help button located in the challenge editor after Check your code button below.

Where is the the terms and conditions elements.

having the same issue, did you figure this out?

hi there!
if you have any question about specific curriculum challenges , create your own topic to the challenge step, using help button. that button appear below the challenge editor when you try to submit the wrong code more than three times.

1 Like

Yes, I did.



        Mod edit: code removed

Hope I helped

Hi there, it is not our policy to post solutions for fCC challenges here. If you really want to help someone, you can either mark the post that helped you as the solution so they can read it (using the checkmark box) or you can summarize a few tips or hints for the person asking.

Thank you for your understanding.

1 Like