Form element nested

Tell us what’s happening:
I have nested the input element as well as added the action attribute, not sure what else I am missing that it is not correct.

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

</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15.

Challenge: Create a Form Element

Link to the challenge:

Hi and welcome to the forum!

You have two issues

  1. You have an extra space at the end of your URL

  2. Your input element has been slightly changed:

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

thank you I was stuck for a while

1 Like