Create a form element: updated

Tell us what’s happening:
Describe your issue in detail here.

I am stuck on the ‘Create a Form Element’ section. Specifically: ’ The existing input element should be nested within a form element.’ I got the other two right, but this one is a doozy. What am I missing here? The previous answers given in the ‘help’ section did not work for me.

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

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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.

You need the existing input element. The test doesn’t actually know if it is the existing one or you deleted that and rewrote it. All it knows is if it was the same. The original input element was this:

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

That doesn’t match what you have so it’s saying that you didn’t follow directions, or perhaps you changed something you weren’t supposed to.

When I fix that, your code passes for me.

1 Like

Ah, I started to suspect that I had accidentally deleted the specific verbiage that it wanted. Thank you so much for the correct and quick response!

1 Like

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