An element consists of opening tags and closing tags.
A div element would look like this
<div> ... </div>
You cannot miss out a single open angle bracket < or a single close angle bracket >. Check your code again. If it is missing a close angle bracket you have to add those.
Actually tried this before and then misguided by some other post.
<label for="terms-and-conditions" ><input id="terms-and-conditions" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a></label>