Tell us what’s happening: Step 58
There’s another way to associate an input
element’s text with the element itself. You can nest the text within a label
element and add a for
attribute with the same value as the input
element’s id
attribute.
Your code so far
<!-- User Editable Region -->
<input id="loving" type='checkbox' name='Loving'>
<!-- User Editable Region -->
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Challenge Information:
Learn HTML by Building a Cat Photo App - Step 58