HTML and CSS Reference
In-Depth Information
• HTML5 currently defines common attributes for this element that are not defined in
HTML 4 and make little sense given that it is empty. Consult the latest specification
for clarity.
• Many developers opt to use margin-related CSS properties to perform the course
formatting duties that this element performed. It is arguable that degradation in the
absence of style sheets may actually favor the br element's continued use.
<button> (Form Button)
This element defines a rich button that may contain arbitrary content to augment what the
standard <input type="button"> provides.
Standard Syntax
<button
accesskey="key"
class="class name(s)"
dir="ltr | rtl"
disabled="disabled"
id="unique alphanumeric identifier"
lang="language code"
name="button name"
style="style information"
tabindex="number"
title="advisory text"
type="button | reset | submit"
value="button value">
</button>
Attributes Introduced by HTML5
autofocus="autofocus"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
enctype="mimetype" (for type submit)
form="id of related form element"
formaction="URL of form action"
formenctype="MIME type of form encoding"
formmethod="GET | POST | PUT | DELETE"
formnovalidate="true | false"
formtarget="name of target frame, region or window"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
spellcheck="true | false"
tabindex="number"
type="add | remove | move-down | move-up"
Search WWH ::




Custom Search