Nesting input element within a form tag 1

I keep getting the message that " The existing input element should be nested within a form element" and I still don’t know how to fix my code, can someone please help me.


<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="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="cat photo url">
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.153 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

It looks like you changed the original input element:

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

The test didn’t want you to change that original input element at all, not even capitalization.

1 Like

Thank you, the code started to run now.