Learn HTML Forms by Building a Registration Form - Step 30

Tell us what’s happening:
I did this to my code but it is not going through is there some help on this?

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/"</a> I accept the terms and conditions</label>
      </fieldset>

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

1 Like

I hope this example will help you.

< p> text< a href =“url”>link text< /a> text.< /p>

This may help you.

Only your text ‘terms and conditions’ should go between the opening and closing tags and your 'href ’ attribute in your opening a tag should be followed by a > bracket to close your opening tag.
Ex:

<p>Here is a paragraph with a <a href="">LINK</a> inside it</p>

Looks like this on the webpage:

Here is a paragraph with a LINK inside it

Hey I try this example but not goin through. I don’t where exactly put the to this exercises.

<a href="https://www.freecodecamp.org/news/terms-of-service/" I accept the terms and conditions

your ‘input’ tag should be in the next line not the same with your label tag. I hope this helps.

Post your new code between the ```` marks that show up when pressing the </> button, so that your tags will appear on your reply.
Remember don’t surround your whole paragraph in a tags just the text ‘Terms and conditions’ should be a link.(like a wiki link)So one can veiw the terms and conditions…

try putting your ‘a’ tag after your ‘I accept the’

1 Like

hey thank you I got it.

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