Please help with Create a Form Element

*I am missing something very simple here, but can’t get my beginner brain to figure it out. The error I have recieved when running my code is “The existing input element should be nested within a form element.”

Passed

  **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>

<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://www.freecatphotoapp.com/submit-cat-photo">
<input>
</form>

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

User Agent is: Mozilla/5.0 (X11; CrOS aarch64 13982.88.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.162 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.

And “existing” is the operative word there. You have

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

but the existing input element was:

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

It sees that that element has changed and the test fails - you weren’t supposed to change it.

When I fix that, your code passes for me.

Follow instructions closely. This is an important skill for a developer.

1 Like

Thank you for your help.

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