code21
September 9, 2020, 7:23pm
1
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:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
nibble
September 9, 2020, 7:31pm
2
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
Nosa
September 9, 2020, 7:52pm
3
Change ur link from upper case to lower case e.g https:// not Https://
1 Like
code21
September 9, 2020, 8:20pm
4
i checked the spelling lowered the Https to https. it still says my form should have an action attribute?
code21
September 9, 2020, 8:21pm
5
i didn’t catch that thanks but changed its still giving me the same outcome
nibble
September 9, 2020, 8:22pm
6
<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:
Https != https (lowercase is right!)
summit != submit
If you change them everything will be OK!
Nosa
September 9, 2020, 8:24pm
8
code21
September 9, 2020, 8:25pm
9
got it thanks for the help
1 Like
code21
September 9, 2020, 8:26pm
10
yes! got it thank you very much
1 Like