Learn HTML Forms by Building a Registration Form(2023)-Step 31

Please tell me how to do these html instructions

Add I accept the terms and conditions text to the newly added label, then link the text terms and conditions to the following location:

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

(here is my coding):
<label for="terms-and-conditions">I accept the terms and conditions<input id="terms-and-conditions" type="checkbox" required /><a for="terms-and-conditions" href="I accept the terms and conditions">terms and conditions</a></label>

Sorry but where is your code?

Got it:
<label for="terms-and-conditions">I accept the terms and conditions<input id="terms-and-conditions" type="checkbox" required /><a for="terms-and-conditions" href="I accept the terms and conditions">terms and conditions</a></label>

I have edited your post and reply to include your code.

1 Like

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