Please help,I have tried

I am stuck

<input type="placeholder="text" I am not getting the 'nesting' part
   **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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://www.freecatphotoapp.com/submit-cat-photo">
<input type="placeholder="text"
</form action> 
</form>

</main>
   **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

You’re almost there.

I am not getting the ‘nesting’ part

You basically have it. “Nested” in this sense beens “surrounded” but. For example:

<div>
  <p>Howdy</p>
</div>

Here, the p is “nested” in the div. Think or Russian nesting dolls, matryoshka dolls.

And you basically have that:

<form action="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="placeholder="text"
</form action> 

The input is nested by the form.

The reason your code is not passing is because the input element has been changed. You have:

 <input type="placeholder="text"

but the original was:

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

The instructions say:

Nest the existing input element…

Note the word “existing”. But you changed it. Change it back. That should also add in the missing closing angle bracket (>).

After that, you have:

</form action> 
</form>

You only have one form so you only need one of those. The second one is correct.

When I fix those things, your code passes for me.

But a lot of people get confused on this one - check back if you’re still having trouble.

1 Like
<`input type="text" placeholder="URL link">`

This is the correct format of a input text. You also got your form action wrong.

<form action="https://www.freecatphotoapp.com/submit-cat-photo">
    <input type="text" placeholder="URL link">
</form>

Form action brings you to the link you assign to after you have answer to the input text.