BUTTON is a TYPE attribute value to the INPUT element for FORMs. It places
a button on an HTML form and uses scripting code to make the button perform
an action you define (this is aside from the information that it sends in
the Name/Value pair upon form submittal.) Note that this INPUT type does
not actually initiate a form submission.
This is a method of giving access/focus to an active HTML element using
a keyboard character. This is a common GUI paradigm also known
as a "keyboard shortcut" or "keyboard accelerator"
A single character is used as the value of this attribute. In addition,
a platform-dependent key is usually used in combination with the
ACCESSKEY character to access the functionality of the active field.
[A single, case-insensitive character from a browser's character set.]
Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
This attribute specifies the alignment of text following the INPUT
reference relative to the field on screen. LEFT and RIGHT specify floating
horizontal alignment of the form field in the browser window, and subsequent
text will wrap around the form field. The other options specify vertical
alignment of text relative to the form field on the same line.
Values:Left | Right |
Top | Texttop |
Middle | Absmiddle |
Baseline | Bottom |
"Tabbing" is a method of giving access/focus to an active HTML
element using a standard keyboard sequence. All the active elements in a
document can be cycled through using this sequence (ex: Windows TAB key.)
The order of the active elements in this cycle is usually the order they
occur in the document, but the TABINDEX attribute allows a different order
to be established. The use of this attribute should create the following
tabbing order cycle if the browser supports the attribute:
Active elements using the TABINDEX attribute with positive integers are
navigated first. Low values are navigated first.
Active elements not specifying any TABINDEX attribute
Those elements carrying a DISABLED attribute or using negative TABINDEX
values do not participate in the tabbing cycle.
This is a required attribute representing the symbolic result of the button
field when activated that is passed to the form processing script. It is
also used to indicate a label to be displayed on the face of the button.
I made VALUE a required attribute because browsers do not usually have
a default button label for the element (unlike submit and reset) - this makes
the button blank or almost non-existant if no VALUE is present.
I was surprised to find that Netscape has supported this element
since version 1.0. I am not sure what purpose it served in that era
because its main focus is now related to scripting (which was not
supported until Navigator 2.0)
Netscape does not appear to have advertised that it supports the
HEIGHT and WIDTH attributes for this element. A reader alerted me
to them when he discovered them by accident.
Note: If HEIGHT and/or WIDTH dimensions are
specified that are smaller than the default size required to
display a button, the default size will be used.
Internet Explorer 4.0 honors all whitespace and carriage returns in the value
attribute for this element. The button will preserve and display them 'as-is'.
Other browsers and earlier versions of Internet Explorer do not do this.
Netscape 4+ allows some Character-level formatting to be applied to the
contents of this form field. These physical formatting elements (along with
virtual formatting elements that are rendered identically, such as
EM and I) apply to this form field: I, U, TT, S, STRIKE, SUB, SUP, BIG,
SMALL, FONT SIZE and FONT FACE.
The DIR="RTL" attribute right aligns the content of INPUT elements
WITHIN the form field, not the element itself relative to the
viewport as it does for other elements.