Add a Submit Button to a Form HELP

Add a Submit Button to a Form HELP
0

#1

Tell us what’s happening:

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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

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

The above is the instruction and your code.
It looks like you didn’t add any new button to your form and that you were modifying the input line.
Reset the code using the provided Reset button.

Then add a new line after the input line (inside the form) which looks similar to the given example

<button type="submit">this button submits the form</button>

But make sure it has “Submit” as the text instead of “this button submits the form”.

hope this helps.