Form challenge won't accept my a element. I can't move forward

Please help. No matter what I do, it won’t accept that I have an a element there. The link is present and functional on the preview, but the system won’t let me pass. What am I getting wrong? Thanks!

My Code:

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

Challenge:

Please post your actual code instead of a picture. Also, please provide a link to the challenge. Thanks

1 Like

I don’t know how to make the code not work, but HA! it DOES work. I don’t know why the system won’t take it. I’m adding an x to the front to disable it.

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

Well, that didn’t work.

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 (’).

1 Like

Thank you! Any idea what I’m doing wrong with the a element?

The problem is outside of the part of the code you included. The phrase terms and conditions should only appear once. The anchor element should be part of your checkbox element’s text.

1 Like

OMG! It worked! Thank you for all the help!

1 Like