Showing posts with label Attribute used in html5. Show all posts
Showing posts with label Attribute used in html5. Show all posts

Saturday, 28 January 2012

HTML5 Global Attributes


AttributeValueDescription
accesskeycharacterSpecifies a shortcut key to access an element
classclassnameRefers to a class specified in a style sheet
contenteditabletrue
false
inherit
Specifies whether a user can edit the content of an element or not
contextmenumenu_idSpecifies a context menu for an element. The value must be the id of a <menu> element
dirltr
rtl
auto
Specifies the text direction for the content in an element
draggabletrue
false
auto
Specifies whether a user is allowed to drag an element or not
dropzonecopy
move
link
Specifies what happens when dragged items/data is dropped in the element
hiddenhiddenSpecifies that an element should be hidden
ididSpecifies a unique id for an element
langlanguage_codeSpecifies the language of the element's content
spellchecktrue
false
Specifies if the element must have its spelling and grammar checked
stylestyle_definitionsSpecifies an inline style for an element
tabindexnumberSpecifies the tab order of an element
titletextSpecifies extra information about an element