Nesting the Input element in the form element

Does anyone know what I am doing wrong here? I keep getting the error message that “The existing input element should be nested within a form element.”

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p> 
 View more cat photos <a href=# target="_blank">cat photos</a>
</p> 
 <a href = "#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
 
 <p>Top 3 things cats love:</p>
 <ul>
    <li>Milk</li>
    <li>Cheese</li>
    <li>lasagna</li>
  </ul>
<p>Top 3 Things Cats Hate:</p>
  <ol>
    <li> Thunder</li>  
    <li> Fleas</li>
    <li>Other Cats</li>
  </ol>
 
<form action="https://www.freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="Upload Cat Photo"> 
</form>

</main>
  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

I think it’s because you have changed the text inside the placeholder of input element.

Original code:

<input type="text" placeholder="cat photo URL">

Your code:

<input type="text" placeholder="Upload Cat Photo"> 

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