Learn HTML Forms by Building a Registration Form -step 31

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

what am i doing wrong here. please help i spent a lot of time trying to figure this out

Hello and Welcome!

In this step we are asked to enter the text I accept the terms and conditions immediately after the input element.
Below is what we begin this step with to start.

<label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /></label>

The text should come between the input and the closing label tag.

Then, we are asked to turn the terms and conditions into a link.

It would like us to do this without changing anything else.
We should not add, delete, nor change anything that is already there.
We should add the anchor touching the terms and conditions on both sides to form the anchor.

I hope this helps you.

Wishing you good progress!

thank you, i was struggling with today for a long time :smiley: but i fugured it out. there is still much to come as error from my side lol. have a great day.

1 Like

I am happy that you have been able to move on to the next step.

Do not feel bad about mistakes. We all make them and learn from them.

Wishing you good progress on your coding journey.

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