Learn HTML by Building a Cat Photo App - Step 56

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

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.

Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute.

Loving

Having some trouble with this, Can someone help me out on this?

Hello! Welcome to the forum.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I can explain the instruction to you. So you need to add a label element with a for attribute that nests the text Loving
So after your input element, before your text Loving add your label opening tag and for attribute. Then after the text Loving add your label element closing tag.

I found the solution to this. You need to input your for arrtribute inside the opening label element. It would appear this way,

…what way? I’m still trying to figure this out, and can’t find an answer. NOTHING I try with this “for” attribute works. I’ve tried every possible configuration AND researched it.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.