HTML, code error, step 31

I am getting an error saying the step does not pass, any idea?

Step31:

Add the text I accept the terms and conditions immediately after the input element in the newly added label. Then link the text terms and conditions to the following location:

https://www.freecodecamp.org/news/terms-of-service/

My code:

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

Hi there and welcome to our community!

For future reference, if you need help with a particular step, it’s best to click the Help button, which appears after you have submitted incorrect code three times.
This will create a forum post which automatically includes your full code, a direct link to the challenge, and an opportunity for you to describe your issue in detail.

I have edited your post to include a link to the step which you are stuck on.
As it happens, your only mistake is that you’ve lost the word ‘the’ from the text ‘I accept the terms and conditions’.

text I accept the you te missing (the ) in your text

I added ‘the’ but still getting the error:

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

it says"
Sorry, your code does not pass. Try again.

You should add I accept the terms and conditions text to the label following the third fieldset."

You have added hyphens in ‘terms and conditions’, which shouldn’t be there.

1 Like

good catch, solved the issue after removing the hyphens ,thanks

1 Like

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