The button element allows you to create a push button on a web
page. Buttons are primarily used in conjunction with client-side
scripting such as JavaScript to perform an action. Otherwise,
they are pretty useless except for display a prototype of an
interface.
Unline SUBMIT buttons, the BUTTON element will appear on the web
page regardless of whether it is contained within a FORM element or
not.
Attributes
Attribute
Description
ID
Identifies this tag to reference in script (program code)
CLASS
Define the class used to render this element (defined by a style sheet)
TITLE
A title that is associated with the element (displayed as a tooltip in Internet Explorer)
NAME
Defines the name that will be used to reference this element in the Document Object Model (DOM)
TYPE
Must be defined as BUTTON for this type of input
VALUE
Defines the label which is affixed to the button and is displayed to the user
DISABLED
Presence of this attributes indicates the button cannot be clicked
TABINDEX
Indicates the "tab order" for keyboard navigation of the web page input controls