I'm unable to follow instructions on how to place my element inside form. I tried Nesting the text field inside a form element, and added the action="/submit-cat-photo" attribute to the form element, but failed

Tell us what’s happening:

Your code so far

<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>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<input type= <form action="/submit-cat-photo"></form> <placeholder="cat photo URL">

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

Hi ameena,

First you must nest the input inside a form element:

  <input type="text" placeholder="cat photo URL">

Finally, you must add the attribute action="/submit-cat-photo" to the form.
Good luck!

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

Thank you so much :slight_smile: