Form Tag Missing on Code

Right now I have the code set properly however I am receiving this error “Each of your checkboxes should be added within the form tag.” Any help on how to add the form tag to the code?

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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
<label form="caring"><input id="caring" type="checkbox" name="personality">
Caring</label>
<label form="understanding"><input id="understaning" type="checkbox" name="personality">
Understanding</label>
<label form="compassionate"><input id="compassionate" type="checkbox" name="personality">
Compassionate</label>
</main>

Your browser information:

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

Your checkboxes are at the bottom, outside of the <form> tag. See the comments in your code below. I’d try moving those lines in between <form> and </form>.

<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">
<!-- THIS IS INSIDE THE FORM TAG -->
  <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>
<!-- THIS IS THE END OF THE FORM TAG -->
</form>
<label form="caring"><input id="caring" type="checkbox" name="personality">
Caring</label>
<label form="understanding"><input id="understaning" type="checkbox" name="personality">
Understanding</label>
<label form="compassionate"><input id="compassionate" type="checkbox" name="personality">
Compassionate</label>
</main>