How to nest an existing input inside a form

Tell us what’s happening:

Nest the existing input element inside a form element and assign "" to the action attribute of the form element.

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0.

Challenge: Create a Form Element

Link to the challenge:

Hi guys ! Help please please cause I’m stuck into this

What is your question? You only posted the challenge requirement.

This is a syntax error. The tag is not closed, and it looks like you have mixed two tags together rather than nesting.

Hi, my question is why my coding doesn’t work
They asked me to nest the existing input inside a form what I’ve done but it doesn’t work

You have not nested one tag inside of another. You have blended two tags together.

<outer tag>
  <nested tag>
</outer tag>

Finally, I got it Jeremy it had just made a mistake about some words. Thanks so much


Nice work getting the code to pass!

1 Like

can someone help me with nesting inside a form element, been stucked for 30 mins now. It keeps saying form ation needs to be attributed… Today is my first day and I am pretty much frustrated right now.

Hi and welcome to the forum!

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

okay. Will do that now