Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML button definition

Browser support
IEFFOpSaf
FullFullFullFull

Type: inline element

Syntax

<button> ... </button>

Description

Defines a button. On the button you can place content like images or text, this is a difference between the button created with input.

Attributes

Attribute Description
name = cdata Name of the button. This is sent to the server when the button is pushed.
value = cdata Value of the button. This is sent to the server when the button is pushed.
type = button type Defines the type of the button.
  • Submit: When a submit button is pressed the button submits a form.
  • Reset: Resets all controls to their initial values.
  • Push: No default action. Could execute a script by the event attributes.

Common attributes

Example

[Try this example yourself]
<button>
  buttontext
</button>

Output

  • Comments

No comments added.