I cant nest form tag and input tag

i cant nest form tag and input tag:

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>
<input type="cat photos" placeholder="cat photo URL">
<form 
action="/submit-cat-photo"></form>


</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

The error message you are getting is:

" Your text input element should be nested within a form element."

To nest an element (A) inside of another element (B) means that A should be placed within the opening/closing tags of element B. Does your code currently nest input inside of the form opening/closing tags?

1 Like