Creating a form element. action attibute

Tell us what’s happening:
I need help what am I doing wrong. it says my form needs an action attribute. did I do it wrong? thanks

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363.

Challenge: Create a Form Element

Link to the challenge:

The action attribute of the form element is supposed to be "https://freecatphotoapp.com/submit-cat-photo". Check your spelling. Instead of typing the uri simply copy and paste.

2 Likes

Change ur link from upper case to lower case e.g https:// not Https://

1 Like

i checked the spelling lowered the Https to https. it still says my form should have an action attribute?

i didn’t catch that thanks but changed its still giving me the same outcome

<form action="Https://freecatphotoapp.com/summit-cat-photo">. I said copy and paste. Check Https is supposed to be https and summit-cat-photo is supposed to be submit-cat-photo

In your code you have 2 typos:

  1. Https != https (lowercase is right!)
  2. summit != submit

If you change them everything will be OK!

Use this form action=“https://freecatphotoapp.com/submit-cat-photo”

got it thanks for the help

1 Like

yes! got it thank you very much

1 Like