Did a search but nothing on this. The steps for this are roughly, add a label. Then a for and ID. Then a link to the terms and conditions. This give me an error " You should use an a
element to link to the terms and conditions."
But I have an βaβ element.
I accept the terms and conditions<a href="freeCodeCamp's Terms of Service>I accept the terms and conditions
Please paste in all of your HTML here using the following method so we can see that you have tried.
To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e
to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </>
button above the editor to add the triple back ticks.
Thank you for replying
<label for="terms-and-condtions">I accept the 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>
First goes the label, then the input, then the text βI accept theβ (a) terms and conditions(/a). And you have to watch for white spaces, no white space in front of the left bracket.
I just got it. That was frustrating!
Appreciate the help.