Please help,I have tried

I am stuck

<input type="placeholder="text" I am not getting the 'nesting' part
   **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>
<form action="">
<input type="placeholder="text"
</form action> 

   **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:


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

And you basically have that:

<form action="">
  <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> 

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="">
    <input type="text" placeholder="URL link">

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

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