Im suppose to be creating a form element and im not exactly sure what it is that im doing wrong

Tell us what’s happening:

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

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

Challenge: Create a Form Element

Link to the challenge:

You created the form element properly, but you didn’t put it in the right place.

The instructions say:

Nest the existing input element inside a form element…

Note the word “existing”.

You have this:

<input type="text" placeholder="cat photo URL">
<form action="https://freecatphotoapp.com/submit-cat-photo">
  <input>
</form>

Note that the pre-existing input is outside of the form and you’ve created a new one that is nested inside the form.

When I move the pre-existing input inside the form and I get rid of the one you created, it passes for me.

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