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**

<h2>CatPhotoApp</h2>
<main>
<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>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<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>
</form>
<form>
<label>
  <label for="clever"><input id="clever" type="checkbox" name="personality"> clever</label>
  </label>
</form>
<form>
<label>
  <label for="mean"><input id="mean" type="checkbox" name="personality"> mean</label>
  </label>
</form>
<form>
<label>
<label for="sleepy"><input id="sleepy" type"checkbox" name="personality"> sleepy</label>
</label>
</form>
</main>
  **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.

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

This is incorrect.

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

This is incorrect

You just need to write this.

No.3:
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!

2 Likes

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