Nesting is not working

Tell us what’s happening: Although I think it’s right my form action code isn’t working. It says it should be nested, but I’m pretty sure it already is.

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="/submit-cat-photo"></form>

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

Hello and welcome to the FCC community~!

Your <input> element should be nested within your <form> element. As an example:

    <nested element>

Does that help? :slight_smile:

So the action should be in a separate tag? So sorry if I sound stupid, I just started.
I tried to do it the way you said, but it’s still wrong.

The action is an attribute of the <form> element.
The <input> element needs to be nested inside the <form> element. :slight_smile:

1 Like

I got it now, thank you so much!!