Sunday 19 May 2013

HTML5 Attribute reference



PageSummary
ATOMICSELECTION html attributeSpecifies whether the element and its contents must be selected as a whole, indivisible unit.
BGCOLOR html attribute
BaseHrefRetrieves a string of the URL where the object tag can be found, often the href of the document that the object is in, or the value set by a base element.
STYLE html attributeSets an inline style for the element.
aLink
abbrIndicates an abbreviation or an acronym.
acceptSets or retrieves a comma-separated list of content types.
accessKeySets a keyboard keystroke for selection of its element, which would otherwise be done using a mouse.
actionSets or retrieves the URL to which the form content is sent for processing.
align
align (Table caption, legend element)Sets or retrieves a value that indicates the table alignment.
align (Table, iframe elements)Specifies the horizontal alignment of the content in an element. Not supported in HTML5. Use CSS instead.
image
alinkColorSets or gets the color of all active links in the document.
allowTransparencySets or retrieves whether the object can be transparent.
alt
alt
asyncProvides control of when a script executes while a document loads.
autocomplete
autocomplete (input, form elements)Specifies whether a form should have autocomplete on or off. When autocomplete is on, the browser automatically complete values based on values that the user has entered before.
autofocusProvides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
axis
background (Body element)Specifies a background image for a document. This attribute is deprecated in HTML4 and not supported in HTML5. Use CSS.
background (Table, table cell, td, th elements)Specifies up to five separate background properties of an object.
balance
bgColorSpecifies the background color of a document. This is deprecated in HTML4 and not supported in HTML5.
bgColor (document)Deprecated. Sets or retrieves the background color behind the object.
bgProperties
borderSpecifies the width of the border around an element. Deprecated in HTML4, not supported in HTML5. Use CSS.
border (frameSet, iframe)Sets or retrieves the space between the frames, including the 3-D border.
borderColorSpecifies the border color of the object.
borderColorDark
borderColorLightSets the colors of the upper and left corners of the cell. Used with borderColorDark to set the lighter colors in an element's shaded border. Deprecated in HTML4, unsupported in HTML5. Use CSS.
bottomMargin
cellPaddingSpecifies the space, in pixels, between the cell wall and the cell content. Not supported in HTML5. Use CSS.
cellsRetrieves a collection of all cells in the table row or in the entire table.
chSets an alignment character. The first occurrence of the alignment character in each cell in a column will be on a vertical axis.
chOffRemoves an alignment character set by the attribute ch.
checkedSets or retrieves the state of the check box or radio button.
cite
classSpecifies one or more classnames for an element, usually used to point to a class in a style sheet.
classidSets or retrieves the class identifier for the object.
clear
codeDefines a piece of computer code. Renders in fixed-width characters.
codeBaseSets or retrieves the URL of the component.
codeType
colSpan
colorThe foreground color of the text of an object.
cols
cols (TextArea element)
cols (frameSet)Sets or retrieves the number of columns in the table.
compact
content
contentEditableSets or retrieves the string that indicates whether the user can edit the content of the object.
coords
data
dataset and data-*
dataFldSets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
dataFormatAs
dataPageSize
dataSrcSets or retrieves the source of the data for data binding.
dateTime
declare
deferSets or retrieves the status of the script.
dirGlobal attribute. Specifies the element’s text directionality.
disabled
for
htmlFor
draggable
encodingSets or retrieves the MIME encoding for the form.
enctype
event
faceSets or retrieves the current typeface family.
formAction
formEnctype
formMethodOverrides the submit method attribute previously specified on a form element.
formNoValidate
frame
frameBorderSets or retrieves whether to display a border for the frame.
frameSpacing
headers
heightSets or retrieves the height of the object.
hidden
hideFocus
hrefSets or retrieves a destination URL or an anchor point
href (base)
hreflang
hspaceSets or retrieves the horizontal margin for the object.
httpEquiv
id
isMapIndicates that an image is part of a server-side image-map.
label
label (optGroup)
langSets or retrieves the language to use.
languageUse the type attribute instead. Specifies the language of the script to be evaluated. May be omitted when using ECMAScript (also known as JavaScript).
leftMargin
linkEnables the current document to establish links to external documents.
list
longDesc
loopSets or retrieves the number of times a sound or video clip will loop when activated.
lowsrc
marginHeight
marginWidthSets or retrieves the left and right margin widths before displaying the text in a frame.
max (HTMLInputElement)Reflects the max HTML attribute, containing the maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.
max(HTMLProgressElement)
maxLength
method
methods
minReflects the min HTML attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
multiple
name
name (frames)
name (meta object)
name (window)
name param element)
noHref
noResize
noShade
noValidate
noWrap
pattern
placeholder
pluginspage
readOnly
rel
required
rev
rightMargin
role
rowSpan
rules
sandbox
scheme
scope
scroll
scrolling
security html attribute
selected
shape
size
size (control)
size (hr)
span
src
src (iframe, embed, xml)
src (input, img)
src (script)
standbyA message for the browser to show while an object's implementation and data load.
start
start (ol)
stepSpecify the increment for input with types numbertime, or range
summary
tabIndex
tabStop
target
text (body element)
title
topMargin
type
type (button element)
type (param element)
type (script element)
type (select element)
type (textarea element)
type (ul,li,ol elements)
type type (a, link, embed)
units
url
urn
useMap
vAlign
vAlign (table caption)
vLink
value (HTMLProgressElement)
value (button element)
value (input elements)
value (li element)
value (param element)
value (select, option element)
value (textarea element)
valueType
vcard name
version
viewMasterTab
volume
vspace
width
width (img, input elements)
width (merge candidate)
wrap

No comments:

Post a Comment