Stuck at checkbox

Tell us what’s happening:
i have created the three checkboxes as it was asked but i screwed up the code somewhere in nesting the checkbox in label element. and on top of that it is asking me to give name attribute of personality to the checkboxes , which i have already done .
please!!! explain where i have gone wrong.

  **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=
<label for="Loving"><input id ="loving" type="checkbox"
name="personality"
>loving  
</label><br>
<label for ="Fluffy"><input id="fluffy"type="checkbox" name="personality">fluffy</label><br>
<label for="Hungry"
><input id="hungry" type="checkbox" name="personality">hungry</label><br 



"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>
</main>
  **Your browser information:**

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

it seems you have broken the opening form tag, you will need to put it back together

Can you give an example.

Hi @Nicolas28 !

Welcome to the forum!

You have a few syntax errors like here

and here

It would be easier to reset the lesson.

I would look at the example again.

<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
<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>


    ADD CHECKBOXES HERE
    
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
  </form>
</main>

Hope that helps!

1 Like

Thanks for the help. I will reset the code and let you know if I need any further help. :grinning:

1 Like

It actually worked thank you for your assistance.

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