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 "https://freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

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>
<form input action="https://freecatphotoapp.com"/submit-cat-photo 
</main>

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>
2 Likes

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

2 Likes

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