Create a Form Element - Where to Nest

Create a Form Element - Where to Nest
0

#1

When it says nest the text field inside the form element, exactly what text do I nest and where do I nest it? Please.


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

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-form-element


#2

It means literally nest your input field inside your form.

<form>
  <input>
</form>

#3

So the instruction is this - Nest your text field inside a form element, and add the action="/submit-cat-photo" attribute to the form element.
This is what is put -
But ran the test and it said to “Nest your text input element within a form element”


#4

Yeah, so nest your input element inside your form element like my reply above.

If you still need help, here is what I mean.

Summary
<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL">
</form>

#5

Thanks Philly, worked a treat.