Submit button in html

Tell us what’s happening:
Tried a lot of time creating it idk whats wrong

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 (Linux; Android 8.1.0; SM-J710GN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36.

Challenge: Add a Submit Button to a Form

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

Don’t you need to place the word submit (ore any other word that you prefer) between the button code?

try this @Usama_1991

  <form action="/submit-cat-photo">
            <input type="text" placeholder="cat photo URL">
            <button type="submit">Submit</button>
        </form>

use “input” instead of “button”.

Hello, Usama.

Look at the instructions:

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

Then look at the code you have. You have not followed the instructions.

If you are still stuck. Look at the example submit button in the lesson.

I hope this helps