HTML ERROR OCCUR

I was trying to add an input with its type attribute set to checkbox and give it the option Loving everything was correct but its giving me a error
You can see :

<fieldset>
            <legend>What's your cat's personality?</legend>
              <label>Loving<input type="checkbox">Loving</label>
</fieldset>

But still its giving me a hint:
The input element for your checkbox should have an opening tag, but not a closing tag.

Do you have a </input> tag? If so, remove it.

Hello there.
Can you provide a link to the question and your code as well?

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 (').

Erase this word Loving here.

You already have it on the right side of the input element and you should not have added it again on the left.

1 Like