Name
<button> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
Synopsis
<button> ... </button>
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 Web Design in a Nutshell 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.