Registration Form Step 26

hi! I’m not sure why I keep getting an error on this step. I am trying to link text with the <a element but keep getting an error and I’m not sure why. This is the code I have written out:

  <fieldset>
        <label><input type="radio" name="account-type" /> Personal Account</label>
        <label><input type="radio" name="account-type" /> Business Account</label>
        <label><input type="checkbox" required /> I accept the terms and conditions</label>
        <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
      </fieldset>

What does the error say?

I think it wants you to make the terms and conditions within your checkbox element a link.

1 Like

it says I need to use an a element to link to the terms and conditions

i tried that and it still gave me an error

I would make sure the terms and conditions are between the end of the opening bracket and the start of the closing bracket.

Here’s the code I used for this part.

Answer
<label><input type="checkbox" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a></label>```
4 Likes

In my own case I did this exact thing and I’m getting the same error msg like hers

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