I didn’t know about the <button>
tag until today.
Asked
Active
Viewed 1,019 times
4 Answers
8
Check this article
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.

rahul
- 184,426
- 49
- 232
- 263
7
Basically, <button>
is more flexible as it can contain other tags inside it. Like,
<button type="submit"><strong>Click</strong> me, <em>user!</em></button>
You won't be able to do this with regular <input>
.

n1313
- 20,555
- 7
- 31
- 46
0
You can include images in a <button>
tag, but not in an <input>
tag, amoung other differences

Amandasaurus
- 58,203
- 71
- 188
- 248