1

What is the difference between these two buttons?

<button>caption</button>
<input type="button" value="caption" />
Danny Fox
  • 38,659
  • 28
  • 68
  • 94

2 Answers2

3

The button element can contain other HTML elements, for example images.

See also here: http://dev.w3.org/html5/spec/the-button-element.html#the-button-element

ComFreek
  • 29,044
  • 18
  • 104
  • 156
3

http://www.w3schools.com/tags/tag_button.asp says to <button>:

important: If you use the element in an HTML form, different browsers may submit different values. Internet Explorer, prior version 9, will submit the text between the and tags, while other browsers will submit the content of the value attribute. Use the <input> element to create buttons in an HTML form.

jcklie
  • 4,054
  • 3
  • 24
  • 42