It says that I need to add a new label element in which to nest the text Loving . But I already done it. Whats wrong? Thanks.
Your code so far
<input id="loving" type="checkbox" for="loving">
<label>Loving</label>
<label><input for="loving"></label>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 56
Link to the challenge:
I don’t understand why you have 2 labels and two inputs? That’s probably not right
1 Like
Alright, but how to add “for” attribute in label element?
You add the for attribute to the label the exact same way you added it to the input here:
But you need it in the label here:
Like this? but it still wrong.
<input id="loving" type="checkbox"><label>Loving<input for="loving"></label>
You are adding a second input element. Do not do that.
system
Closed
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.