Submit button is not working

Tell us what’s happening:

Your code so far

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="/submit-cat-photo"submit>
<input type="text" placeholder="cat photo URL">
<button type="submit">Submit</button>
<button type="submit"submit

Your browser information:

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

Challenge: Add a Submit Button to a Form

Link to the challenge:

So the form has a little extra text at the end of its opening tag, and there’s the beginning of another button tag after the form. Both those things will cause problems.

1 Like

this is issue, always html tags should be close < > each others.

Use below text to print Button
<button type="submit" > submit <button>

1 Like

It is broken HTML, to be sure - but there’s already a submit button two lines above that one. The submit button outside the form shouldn’t even be there.

1 Like

well i think the button tag wont perform any action until an <a> tag is added.
In your code the tag would be like
<input type="submit" name="submit">

@snowmonkey’s first response is correct.

  • this is early on in the curriculum, the goal is only to CREATE a button, not make it function.
1 Like