Building a cat photo app

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 please what is not correct in this code?[quote=“sassipamphile, post:1, topic:634163, full:true”]
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 please what is not correct in this code?
[/quote]

Hello and welcome to the community :smiley:!
To post your code as well as a link to the step press on the ‘help’ button that appears next to the ‘submit’ button after unsuccessfully submitting your code a few times:

Welcome to the community :smiley:

If you try a step three times a help button will apear
image
Clicking this button will automatically create a post will all your code so far, a link to the step your on, and can be edited before posting to include your question.

You seem to have two inputs with id of loving.

Use the ‘reset’ button to clear away any edits. Then try to add the label again

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.