AlexO
October 20, 2020, 5:26pm
1
<form action="/https://freecatphotoapp.com/submit-cat-photo>"
<input type="text" placeholder="cat photo URL">
</form>
This is the code i have tried. I looked at videos and other forums and done exactly what they do and ive done this . It is still giving me the error message " The existing
input
element should be nested within a
form
element. Your
form
should have an
action
attribute which is set to
https://freecatphotoapp.com/submit-cat-photo
Please help
You have the closing angle bracket (>
) before the closing quote ("
).
AlexO
October 20, 2020, 6:08pm
3
ArielLeslie,
I have switched the symbols but am still getting the same error about the action attribute . Any more suggestions?
What is your current full code?
AlexO
October 20, 2020, 6:15pm
5
JermeyLT, here it is
<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>
You have a / before https in your form:
<form action="/https://freecatphotoapp.com/submit-cat-photo">
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
AlexO
October 20, 2020, 6:25pm
9
Okay I will do that in the furture for further questions, thanks.
AlexO
October 20, 2020, 6:26pm
10
Gordon, I change what you suggested and it worked. Thanks for the help, I was stuck on that for forever.
No worries It’s always just one, tiny thing in the wrong place, isn’t it?
AlexO
October 20, 2020, 6:34pm
12
Gordon, Its been many tiny things in the wrong place. First days are always the hardest but luckily this community is awesome and very helpful!