Issue while creating a Set of Checkboxes

Could you please help me find issue

Error: Make sure each of your label elements has a closing tag.



  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>


    <li>cat nip</li>

    <li>laser pointers</li>



  <p>Top 3 things cats hate:</p>


    <li>flea treatment</li>


    <li>other cats</li>


  <form action="">

    <Label for="caring"><input id="caring" type="checkbox" name="personality"> caring</label>

    <Label for="loving"><input id="loving" type="checkbox" name="personality"> loving</label>

    <Label for="useless"><input id="useless" type="checkbox" name="personality"> useless</label><br><br>

    <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>

    <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br><br>

    <input type="text" placeholder="cat photo URL" required>

    <button type="submit">Submit</button>



The element name is label check that you didn’t change it anywhere.

Hint: you have Label with a capital L in some places

Thank you very much.

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