Learn HTML Forms by Building a Registration Form - Step 30

Tell us what’s happening:
Describe your issue in detail here.
I’m getting switched between two hints.

“You should only wrap the a element around the text terms and conditions
and

You should give the a element an href of https://www.freecodecamp.org/news/terms-of-service/ .

I’m a bit confused as I either give the anchor element href value and it says the anchor should only have text “terms and conditions” or I place the href outside the anchor and it says you should give the anchor element a href value.

Hopefully that made sense. Thanks in advance.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67

Challenge: Learn HTML Forms by Building a Registration Form - Step 30

Link to the challenge:

You don’t want to add any additional text to the label. You want to turn the existing “terms and conditions” text into a link.

1 Like

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