HTML global attributes are those attributes which are common for all HTML elements. The global attributes are supported by both standard and non-standard element.
The global attributes can be used with all elements, although it may not have any effect on some elements.
Following is the complete list of global attributes with their description:
Hererepresent new in HTML5.
|It is used to generate keyboard shortcuts for the current element.
|It is used to provide the class name for the current element. It is mainly used with the stylesheet.
|It determines whether the content within an element is editable or not.
|It defines the id for the <menu> element which is used as a context menu (a menu appear on right click) for an element.
|It specifies the direction of the content inside the current element.
|It specifies whether the content within an element is movable or not using Drag and Drop API.
|It specifies the action is taken on the dragged element when it is dropped, ¬¬ such as whether it is copied, moved or linked.
|It is used to hide the element from view.
|It specifies the primary language for the content of an element.
|It is used to apply inline CSS to the current element.
|It specifies whether the content should be checked for spelling errors or not.
|It determines the tabbing order of an element.
|It is used to provide the title, name, or some extra information about the element.
|It specifies whether the content of the element should be translated when the page is localized or not.