Step 26: Learn HTML Forms by Building a Registration Form

Challenge: Step 26

Link to the challenge:

I am using a link, so how come It’s still wrong?


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

The label element should be wrapping the text and the anchor element aswell.

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

it keeps saying " You should only wrap the a element around the text terms and conditions ."

1 Like

Hello??? It doesnt work.

You have included extra space in the code that I have quoted. Remove the extra space before terms and it will work. The extra space will show up as 2 spaces in the webpage.

Thankyou…although that shouldn’t make a major difference. no?

There are 2 spaces in the code.
1st after - I accept the
2nd before - terms and conditions.

In this case the text will show up with two space between “the” & “terms”. This will not look good on a page. It is like appending an extra space between two words unnecessarily.

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