Nesting an input inside a form

Tell us what’s happening:
im having trouble understanding what to do or how to do it

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">

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13099.110.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.136 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

1 Like

Hey @alexander.elliott478. Welcome back again to the forum.
The challenge is saying you to nest the existing input element inside a form element. If you don’t understand nesting, I will explain:

  • Let’s suppose you created an input element.
  • Now, if you want to nest that input element inside a form element, you need to add the opening <form> tag BEFORE the input element and the closing </form> tag AFTER the input element.
  • After you nested that input element inside a form element, the input element becomes the children of the form element or becomes part of it.

I think you understand what nesting is. If you do as I said above, you will pass the tests. Also, don’t forget to add an action attribute to your form element and set it’s value to

More info about nesting:

Happy Coding!

1 Like

oh ok so the solution would be form action=“”>

1 Like

gotit thx tht is all i needed

1 Like

Yes. That’s the solution, but don’t forget to nest the EXISTING input element inside that form element.

yep ik just got confused again lol thx for the help tho

1 Like