With HTML (hypertext markup language), a standard attribute, also known as a global attribute, is any attribute supported by all HTML elements. For example, the "class" attribute can be used in any HTML tag, but an attribute like "src" can only be used in HTML tags like img and frame.
Global attribute list
The following table contains a list of the standard attributes and a description of their appropriate usage.
|Designates a keyboard shortcut to focus on an element.
|Designates one or more CSS (cascading style sheets) classes to be applied to the element.
|Designates whether or not the content of an element may be edited.
|Adds a context menu when an element is right-clicked.
|Stores private data about an application or web page.
|Designates the direction of text within an element.
|Designates whether or not the content of an element may be dragged.
|Designates where dropped data goes (copied, moved, or linked).
|Designates that an element is no longer used or hasn't yet become relevant.
|Gives an element a unique identification for a named anchor.
|Designates the language of the text used in an element.
|States whether or not an element needs its spelling checked for error.
|Designates an inline CSS style for an element.
|Changes how tabbing works within an element.
|Adds extra information about an element that is shown on hover.
|Designates whether or not the language used within an element needs to be translated.