Action Attribute

Tell us what’s happening:
my error says I should have an action attribute set to the website, I thought “url” was the action - what am I missing? I’m confused :frowning:

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

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

No, “url” is not the action. Simply give the action attribute this value: “https://freecatphotoapp.com/submit-cat-photo”.

thank you! Does spacing matter? I did that also but it came back with an error also. It worked now but just curious.

No, Spacing doesn’t matter. Anyway, I’m happy I could help :smiley: :+1: