Html form action and nesting

Html form action and nesting
0

#1

Tell us what’s happening:
it says “Nest your text field inside a form element, and add the action=”/submit-cat-photo" attribute to the form element." but I’m finding it difficult to do… plz help me with it…
Id be very much pleased,

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

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

  • List item

#2

Basically we need to nest the input tag inside the form tag
so you need to put a form tag as after ol

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

please carefully read the challenge question then react.
Happy to help you.


#3

thanks! couldn’t get through without your help, didn’t know need to put form action on above input type.!!