Tell us what’s happening:
the code looks perfect to me. please tell me what is wrong.
it is showing me the error:
Each of your three checkbox elements should be nested in its own label
element.
(It think that i have already done what they are trying to say)
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://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="/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>
<label for="1">
<input id="1" type="checkbox" name="personality">1<br>
</label>
<label for="2">
<input id="2" type="checkbox" name="personality">2<br>
</label>
<label for="3">
<input id="3" type="checkbox" name="personality">3<br>
</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
.
Challenge: Create a Set of Checkboxes
Link to the challenge: