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
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
name="button name"
style="style information"
title="advisory text"
type="button | reset | submit"
value="button value">
Attributes Introduced by HTML5
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"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemtype="microdata type in URL format"
spellcheck="true | false"
type="add | remove | move-down | move-up"
Search WWH ::

Custom Search