The button element has the same function as an input element but it has richer rendering possibilities, not only visually but it also may contain some content between opening and closing tags.
Syntax:
<button type="" name=""></button>
Attributes:
- id, class (document-wide identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- name (elements name)
- type (input element control type)
- value (initial and sent to server values)
- disabled (disabled input controls)
- tabindex (tabbing navigation)
- accesskey (access keys)
- onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Example
HTML button element:
Comments
No comments have been made yet.
Please login to leave a comment. Login now