Form element challenge

Tell us what’s happening:
I am stuck please help!! After I run the test it says that this portion of the challenge is correct.
Your form element should have well-formed open and close tags. While these two aren’t
The existing input element should be nested within a form element.

Your form should have an action attribute which is set to What am I doing wrong?
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>
<input type="text" placeholder="cat photo URL">
<form action=">"</form>

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:


Your input must be in your form.
And you have an error in your action URL.

You didn’t close the first form tag, if you find a problem i think it is better to check the syntax first.
<form action=">"</form>
it should be like :
<form action=""></form>

You included the “greater than” sign in the “url”

1 Like

I closed the first form tag. Also I checked the syntax as well.

Why am I still running into this error? Thanks for your help as well!

This is how you nest input element inside form element. It should look like

    <input >

Right now your input element is not nested within the form element.

1 Like

Instead of posting an image, you can post your code like:

A nicely formatted code is easier to read than the image.

1 Like

If you look at the tests results below the code, there will be the errors that prevent the tests from passing, in your case is :
“The existing input element should be nested within a form element”
Then to past the test you have to nest the input within the form element, like that:


Good luck!