The form element

Tell us what’s happening:
Hey everyone,I noticed when trying to put the ‘form’ element it didn’t work even after looking at other reports,it still didn’t work no matter what.
I’ve tried everything i could think of but no luck.
Please if you have any information of how i could make it work and move on i’d really appreciate it.Thank you for your time.

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

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

1 Like

Hello @Over7Bite. The reason you are not passing the challenge is because you added an extra input element:

The challenge clearly says to nest the EXISTING input element inside a form element. So, no need to add another one.

Also, the link you specified in the form's action attribute is wrong. You need to give this link inside the action attribute:

https://freecatphotoapp.com/submit-cat-photo

Also, you removed the existing input element’s opening < symbol:

Also, you did not close the form tag after the input element:

Also, your form element’s opening tag doesn’t have a > at the end:

Also, your input element’s type attribute’s value is not surrounded with double quotes ("):

Apologies if there are too many “Also” in my post. Happy Coding! If you think that this is too hard to solve, reset your code and start from first.

1 Like

Thanks man i really appreciate it and sorry i didn’t reply earlier which i should have done but all in all Thank you!

1 Like