Getting error messages and not sure how to correct them:
- The existing
input
element should be nested within aform
element.
I don’t know how they aren’t nested, when I have a form element before and after.
- Your
form
should have anaction
attribute which is set tohttps://freecatphotoapp.com/submit-cat-photo
I tried it with and without the forward-slash and still get the error message.
- Your
form
element should have well-formed open and close tags.
Same as (1.) I have a form element before and after.
I think it’s also worth noting that the example given doesn’t include the “>” after “<form” and I think that’s why this challenge is giving people so much trouble. Even after correcting that, however, I’m still getting errors.
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/submit-cat-photo" input type="text" placeholder="cat photo URL">
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
.
Challenge: Create a Form Element
Link to the challenge: