What is difference between input submit and button submit in Html?

Dung Do Tien May 29 2020 999

I see in Html tag has two option to make a button submit a form:

 <button type="submit">Submit</button>


 <input type="submit" value="Submit" />

I see it for the same result so what is the difference between them?

Have 1 answer(s) found.
  • S

    Sandeep Kumar Jul 24 2020

    About functional, they are the same, they only different about the GUI display button. With <input> submit we only display text but with the <button> you can display with text, image, other tags...

    For example :

     <button type="submit">
      <img scr="/path/icon_button.png" />
Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close