What is difference between input submit and button submit in Html?
Dung Do Tien
May 29 2020
532
I see in Html tag has two option to make a button submit a form:
<button type="submit">Submit</button>
OR
<input type="submit" value="Submit" />
I see it for the same result so what is the difference between them?
Have 1 answer(s) found.
-
S0
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" /> </button>
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.