Thursday, June 23, 2011
Wednesday, June 22, 2011
Global Attributes of HTML5
Here is the list of new global attributes in HTML5
Attribute | Value | Description |
---|---|---|
accesskey | character | It specifies a keyboard shortcut to access an element |
class | classname | It specifies a classname for an element (used for stylesheets) |
contenteditableNew | true false | It specifies if the user is allowed to edit the content or not |
contextmenuNew | menu_id | It specifies the context menu for an element |
dir | ltr rtl | It specifies the text direction for the content in an element |
draggableNew | true false auto | It specifies whether or not a user is allowed to drag an element |
dropzoneNew | copy move link | It specifies what happens when dragged items/data is dropped in the element |
hiddenNew | hidden | It specifies that the element is not relevant. Hidden elements are not displayed |
id | id | It specifies a unique id for an element |
lang | language_code | It specifies a language code for the content in an element |
spellcheckNew | true false | It specifies if the element must have its spelling and grammar checked |
style | style_definition | It specifies an inline style for an element |
tabindex | number | It specifies the tab order of an element |
title | text | It specifies extra information about an element |