DAZPY
October 10, 2020, 3:52pm
#1
Ok so this is my code and it says that The existing input
element should be nested within a form
element.
I tried a lot of things but I still don’t get it help please
<form action="https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo url"
</form>
<form action="https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo url"
</form>
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.
ilenia
October 10, 2020, 3:55pm
#2
your input element is missing the closing >
if you need more help, please post your whole code
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 (’).
DAZPY
October 10, 2020, 4:11pm
#3
Thank you so much for replying but I still can’t find it, here is the code
<form action="https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo url">
</form>
ilenia
October 10, 2020, 4:40pm
#4
is this your whole code? please post all the code you have in the editor
EDIT: this was the existing input
element, you have changed it:
<input type="text" placeholder="cat photo URL">
DAZPY
October 10, 2020, 4:43pm
#5
<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>
ilenia
October 10, 2020, 4:54pm
#6
yes, this seems to be the issue
DAZPY
October 10, 2020, 5:15pm
#7
So is there anything I can do to fix it? because every time I look at the code I’m like but whatss wrongggggg
ilenia
October 10, 2020, 5:27pm
#8
make your input element match again the one there was aat the beginning
the palceholder attribute is different
DAZPY
October 10, 2020, 5:37pm
#9
I’m gonna try that thank you so much for your time I hope I get better at this
DAZPY
October 10, 2020, 5:41pm
#10
It worked I deleted my code then I wrote the original one and then I did the form element step Thank you so much I couldn’t have done it without you stay safe and take!
DAZPY
October 10, 2020, 6:13pm
#11
Oh and can I ask u a question real quick because I can’t find the answer
ilenia
October 10, 2020, 6:52pm
#12
if you have a question about a different challenge you can use the Ask for Help button on that challenge
DAZPY
October 10, 2020, 6:54pm
#13
No it’s about something else, the thing is that I’m also in my ethical hacking career and I wanna know if HTML is going to help or coding in general.
ilenia
October 10, 2020, 7:07pm
#14
HTML is the markup language to create web pages. if you are interested in web development, it’s a must. Also you need to know it if you ever want to inject some HTML in a webpage.
It doesn’t have much use other than webpages
DAZPY
October 10, 2020, 7:12pm
#15
Ok thank you have a good day!!
try to write palceholder=“cat phot URL” instead oh “url”
DAZPY
October 12, 2020, 9:28pm
#17
Ye I fixed it the other day no worries thank you for helping though have a good day
1 Like