Name

<button> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<button> ... </button>

Within a form, defines a “button” that functions similar to buttons created with the <input> tag, but allows for richer rendering possibilities. Buttons can contain content such as text and images.

Attributes

name=text

Assigns the control name for the element.

value=text

Assigns the initial value to the button.

type=submit|reset|button

Identifies the type of button: submit button (default value), a reset button, or a custom button (used with JavaScript), respectively.

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.