The existing `input` element should be nested within a `form` element. this is trouble in my projects

Tell us what’s happening:
Describe your issue in detail here.
i have problem for make a form action
The existing input element should be nested within a form element.
this is trouble in my projects
please some one tell me what should i do?
btw im so sorry about my english coz i just learn
thank you so much.

  **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://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<form action="https://www.freecatphotoapp.com/submit-cat-photo"><input>
</form>

<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 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

The failing test says:

The existing* input element should be nested within a form element.

The existing one should be used - don’t create a new one.

This:

<form action="https://www.freecatphotoapp.com/submit-cat-photo"><input>
</form>

created a new one.

You were supposed to wrap the form around the old one:

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

When I fix that, it passes for me.

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