Building a registration form Step 26

Is there something I’m missing here?
The code I have here is as follows.

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

I placed it right below the business account label and right above the checkbox that has the user check the terms and conditions.

HI @jpthrn !

I added the link to the challenge.
Make sure to include this link when asking for help.

Can you provide the full code for what you wrote here?

<label><input type="checkbox" required /> I accept the terms and conditions</label>

That will give us a much better idea of what is going on

This is all the code within the fieldset. These include the radio buttons and the checkbox to accept the terms and conditions

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

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Your current code is producing this result
Screen Shot 2022-06-02 at 9.33.00 PM

That is because you created a new anchor and placed it above the label here

But the challenge wants you to wrap the anchor tag around the terms and conditions text here

The correct result should look like this
Screen Shot 2022-06-02 at 9.35.30 PM

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

OK sorry about that. I got into the backticks for better readability

OK thanks. I think I got it from here

1 Like

Sorry I guess I was wrong it’s not working but I am seeing the correct result in Preview window. here is my revised code.

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

nvm had an unneccessary space. it works now Thanks again for your help

1 Like