HTML Global Properties
HTML attributes give the element meaning and context.
The following global properties are available for any HTML element.
(5) = attribute added in HTML5.
Properties |
Description |
AccessKey |
Specifies the shortcut key for activating an element. |
Class |
Specifies one or more class names for an element (referencing a class in a style sheet). |
Contenteditable (5) |
Specifies whether the element content can be edited. |
ContextMenu (5) |
The context menu for the specified element. The context menu is displayed when the user clicks on an element. |
data-* (5) |
Private custom data that is used to store pages or applications. |
Dir |
Specifies the text direction of the content in the element. |
Draggable (5) |
Specifies whether the element can be dragged. |
Dropzone (5) |
Specifies whether to copy, move, or link while dragging the data that is being dragged. |
Hidden (5) |
The specified element is still not or is no longer relevant. |
Id |
The unique ID of the specified element. |
Lang |
The language that specifies the content of the element. |
SpellCheck (5) |
Specifies whether to check spelling and grammar of elements. |
Style |
The inline CSS style for the specified element. |
TabIndex |
Specifies the tab order of the elements. |
Title |
Specifies additional information about the element. |
Translate (5) |
Specifies whether the element content should be translated. |
Standard properties in HTML 5