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.”


  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="">

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

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.