Create form element is the topic

**Tell us what’s happening
This is what I did:

this is the error : The existing input element should be nested within a form element

Your code so far


<h2>CatPhotoApp</h2>
<main>
<form action="https://freecatphotoapp.com/submit-cat-photo"> </form>
 <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="text" placeholder="cat photo URL">
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15.

Challenge: Create a Form Element

Link to the challenge:

Try putting your closing form tag after the closing input tag so that all of the code is inside of the form. Hope this helps.

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