Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between <input type="button" /> and <button>? [duplicate]

Tags:

html

button

I didn’t know about the <button> tag until today.

like image 793
omg Avatar asked Sep 09 '09 10:09

omg


1 Answers

Check this article

Inputs vs Buttons

Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to “image”, but the BUTTON element type allows content.

like image 60
rahul Avatar answered Dec 03 '22 10:12

rahul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!