Add a Submit Button to a Form [bug]

Add a Submit Button to a Form [bug]
0

#1

Tell us what’s happening:
Anyone having problem with this? i’m doing everything correctly but for some reason, “submit” isn’t efficient enough to finish this problem. I’ve read other forums but they really don’t elaborate the problem.

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-a-submit-button-to-a-form


#2

There is no bug in the tests, but your code is not correct.

The instructions asked you to do two things. You did half of one and ignored the other. Here are the instructions.

Add a button as the last element of your form element with a type of submit, and “Submit” as its text.

  1. You partly did the first part which was adding a button to the form element. However, you did not make it the last element in the form. You made it the first element in the form.

  2. You were supposed to make the button’s text “Submit”, but you left it blank.


#3

Thanks for helping out, but i figured it out after i posted this forum. i appreciate the response