Tell us what’s happening:
I have 2 lines here, the first line is the previous step so you can see what I had changed. The instruction says I need to nest the text “Loving” only in a label element and give it a “for” attribute which has the same value as the id’s value in the “input element”. It got me confused because I thought I did exactly right. Can you show me the mistakes I made? Thank you and happy coding!
Your code so far
<input id="loving" type="checkbox"> Loving
<input id="loving" type="checkbox"> <label for="loving">Loving</label>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 OPR/103.0.0.0
Challenge: Learn HTML by Building a Cat Photo App - Step 56
Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-56`Preformatted text`