HTML - Label Error

The label already exists, but the exercise continues saying that it does not.
I’ve already tried everything. Even ChatGPT, but I can’t understand what I’m doing wrong.

  <legend>What's your cat's personality?</legend>
  <label for="loving">Loving</label>
  <input type="checkbox" id="loving" name="personality" value="loving">

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

please post your code and a link to the step

I’ve edited your code for readability. 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 (').

The label element should come after the input element.

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