Learn HTML Forms by Building a Registration Form - Step 31

Tell us what’s happening:

Describe your issue in detail here.
I have tried this code written multiple ways and the linked terms and conditions text works as it should but my code will not pass. It keeps telling me to add the href with the URL to the a element but I already have. I am completely stuck on this and cannot figure out what is wrong with the code. Others who have asked about this step received advice that has not corrected my problem. Please help!

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form method="post" action='https://register-demo.freecodecamp.org'>
        <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>
        <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>

<!-- User Editable Region -->

      <label for="terms-and-conditions"><input I accept the terms and conditions id="terms-and-conditions" type="checkbox" required /> I accept the <a href="https://freecodecamp.org/news/terms-of-service/">terms and conditions</label>

<!-- User Editable Region -->

      <input type="submit" value="Submit" />
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;

label {
  display: block;
  margin: 0.5rem 0;

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 31

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

I included a description of my problem. I am not sure why this says that I haven’t?

You need to remove the “I accept the terms and conditions” that come after the word “input” you already have this text.

Next you need to close your anchor tag, remember a closing tag looks like </element> replace the word element with the actual element you are closing

Finally take a look at your href. It does not match exactly what the directions tell you to use


Please be more respectful when answering questions. Most users on here are new, and learning for the first time. Please be patient with them as they may not understand right away which is why they are asking for help



cool. sorry bout that.

1 Like