HTML and CSS Reference
In-Depth Information
Name
button
Synopsis
<button> . . . </button>
Used as part of a form, defines a clickable button that functions similarly to buttons created
with the input element but allows for richer rendering possibilities. Buttons can contain con-
tent such as text and images (but not image maps).
Usage
Categories:
Flow content, phrasing content, interactive content, “listed, labelable, and submittable
form-associated element”, palpable content
Permitted contexts:
Where phrasing content is expected
Permitted content:
Phrasing content, but may contain no interactive content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
autofocus ( autofocus="autofocus" in XHTML)
Not in HTML 4.01 . Indicates the control should have focus (be highlighted and ready for
user input) when the document loads.
Search WWH ::




Custom Search