HTML Button Tag

Posted The: 01/09/2008 At: 5:32

The button Element in HTML is used to create a push putton, this can either be used to submit a form, or used togetter with javascript to complete a custom task.

Attributes

Standard Attributes

Attribute:Value:Description:DTD:
AttrsOther AttributesCommon, I18n, EventSTF
DisabledDisabledDisables the ElementSTF
nameCharacter DataSTF
valueCharacter DataSTF
typebutton|submit|resetfor use as form buttonSTF
tabindexNUMBERposition in tabbing orderSTF
accesskey{CHARACTER}position in tabbing orderSTF
onfocusScriptThe element got the focusSTF
onblurScriptThe element lost the focusSTF

DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.

Example

<p><button>Push Me!</button></p>

You can also use images inside the button element.

Comments: [0]

© Brugbart Webdesign