How should i nested the input elements within the form elements

Tell us what’s happening:
i dont know howto nest the input elements within the form elements

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

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

1 Like

Hello @Rubina2,

What you need to do in this challenge is that you need to create a form element with an action attribute in it. Then, you need to give https://freecatphotoapp.com/submit-cat-photo as the action attribute’s value. Then, you need to nest the existing input element inside the form element.

If you don’t understand nesting, I will explain:

<div>
<p>Kitty Ipsum</p> // this is now nested inside the div
</div>

In the above code, you can see that the p element is inside the div element’s opening and closing tag. When you do so, the p element is nested inside the div element and the p becomes the child element of the div.

This is the way you need to nest the input element inside the form element.

Happy Coding!