Learn HTML Forms by Building a Registration Form

I’m pretty stuck on step 27, I tried using Google to help but can’t seem to find why the way I’ve added the code doesn’t work.

Here is what is required:

Step 27

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


and here is what I have coded:

    <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<a href="https://www.freecodecamp.org/news/terms-of-service/"> terms and conditions</a></label>

I keep getting a hintsaying you should only wrap the a element around the text terms and conditions but surely that is what I’m doing?

You have an a closing tag but no a opening tag

Is the “<a” after I accept the, not an opening tag?

I figured it out, it’s not passing because you need to close the space between /"> and terms before the closing tag.

I don’t think I would have ever figured that out, thank you!

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