The attributes common to all HTML elements are called the HTML Global attributes. Both the standard and non-standard elements support these attributes and thus can be used with each element. However, the HTML Global attributes may not have any effect on some elements. All the HTML global attributes are listed below:
|To specify a shortcut key for an element.
|To specify one or multiple class names for an element and is mainly used with the stylesheet.
|To define whether the content within an element is editable or not. It was introduced in HTML5.
|To specify the id for the <menu> element to be used as a context menu for an element.
|To store element-specific private data. It was introduced in HTML5.
|To define the direction of the content inside an element.
|To define whether an element is movable or not using Drag and Drop API. It was introduced in HTML5.
|To specify the action taken (copied, moved, or linked) on the dragged element when it is dropped. It was introduced in HTML5.
|To hide an element from view. It was introduced in HTML5.
|To define a unique id for an element.
|To define the primary language for the content of an element.
|To apply inline CSS to an element.
|To indicate whether the spelling errors should be checked for in the content or not. It was introduced in HTML5.
|To define the tabbing order of an element.
|To provide additional information about an element.
|To define whether an element’s contents should be translated or not. It was introduced in HTML5.