HTML5 Global Attributes
The global attributes are supported by all HTML 5 elements (with a few exceptions).
HTML5 Global Attributes
New : New global attributes in HTML5.
| Attribute | Value | Description |
|---|---|---|
| accesskey | character | Specifies a shortcut key to access an element |
| class | classname | Refers to a class specified in a style sheet |
| contenteditableNew | true false inherit | Specifies whether a user can edit the content of an element or not |
| contextmenuNew | 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 |
| draggableNew | true false auto | Specifies whether a user is allowed to drag an element or not |
| dropzoneNew | copy move link | Specifies what happens when dragged items/data is dropped in the element |
| hiddenNew | 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 |
| spellcheckNew | 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 |

