HTML Global Attributes
New: New in HTML5.
| Attribute | Description |
|---|---|
| accesskey | Sets the keyboard shortcut for accessing an element. |
| class | Specifies the class name of an element. |
| contenteditableNew | Specifies whether the content of an element is editable. |
| contextmenuNew | Specifies a context menu for an element. The context menu appears when the user right-clicks the element. |
| data-*New | Used to store custom data for the page. |
| dir | Sets the text direction of the content in an element. |
| draggableNew | Specifies whether an element can be dragged. |
| dropzoneNew | Specifies whether data is copied, moved, linked, or deleted. |
| hiddenNew | The hidden attribute specifies that an element is hidden. |
| id | Specifies the unique id of an element. |
| lang | Sets the language code of the content in an element. |
| spellcheckNew | Detects whether an element has spelling errors. |
| style | Specifies the inline style of an element. |
| tabindex | Sets the Tab key control order of an element. |
| title | Specifies additional information about an element (can be displayed in a tooltip). |
| translateNew | Specifies whether an element's value needs to be translated when the page loads. |