Each checkboxes with its own label

i have already made the three checkboxes with name attrinute personality but it shows error that you should name it personality and your page should have three checkboxes with nested in its own label

  **Your code so far**

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

<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" 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="https://www.freecatphotoapp.com/submit-cat-photo">
  <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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  <label for="clever"><input id="clever" type="checkbox" name="personality"> clever</label>
  <label for="mean"><input id="mean" type="checkbox" name="personality"> mean</label>
<label for="sleepy"><input id="sleepy" type"checkbox" name="personality"> sleepy</label>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

Hi @pravEEN2598 !

There are a few issues.

You are not supposed to create a form for each label.

This is incorrect.

You are not supposed to nest these checkboxes instead another set of label tags.

This is incorrect

You just need to write this.

You are missing an equals sign here

It might be easier to reset the lesson and just create the three checkboxes in the existing form tags.

Hope that helps!


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