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


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

<a href="#"><img src="https://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>
<input type="text" placeholder="cat photo URL">
<form action="/submit-cat-photo"></form>
</main>

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:

<element>
    <nested element>
</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!!