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


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

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:

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

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">
</form>
1 Like

Thank you so much :slight_smile: