Friday, 30 December 2011

HTML5 Global Attributes

The global attributes are supported by all HTML 5 elements (with a few exceptions).


 HTML5 global attributes:
 
Attribute
Value
Description
accesskey
character
Specifies a shortcut key to access an element
class
classname
Refers to a class specified in a style sheet
Contenteditable     New
true
false
inherit
Specifies whether a user can edit the content of an element or not
Contextmenu        New
menu_id
Specifies a context menu for an element. The value must be the id of a <menu> element
dir
ltr
rtl
auto
Specifies the text direction for the content in an element
Draggable               New
true
false
auto
Specifies whether a user is allowed to drag an element or not
Dropzone             New       
copy
move
link
Specifies what happens when dragged items/data is dropped in the element
Hidden                 New
hidden
Specifies that an element should be hidden
id
id
Specifies a unique id for an element
lang
language_code
Specifies the language of the element's content
Spellcheck         New
true
false
Specifies if the element must have its spelling and grammar checked
style
style_definitions
Specifies an inline style for an element
tabindex
number
Specifies the tab order of an element
title
text
Specifies extra information about an element

No comments:

Post a Comment