Standard attribute
Updated: 09/15/2017 by Computer Hope

In the Hypertext Markup Language, a standard attribute, also known as a global attribute, is any attribute used with every HTML element.
Global attribute list
The following table contains a list of the standard attributes and a description of their appropriate usage.
Attribute | Description |
---|---|
accesskey | Designates a shortcut key to focus on an element. |
class | Designates one or more CSS classes to be applied to the element. |
contenteditable | Designates whether or not the content of an element may be edited. |
contextmenu | Adds a context menu that appears when an element is right-clicked. |
data-* | Stores private data about an application or web page. |
dir | Designates the direction of text within an element. |
draggable | Designates whether or not the content of an element may be dragged. |
dropzone | Designates where dropped data goes (copied, moved or linked). |
hidden | Designates that an element is no longer, or hasn't yet become relevant. |
id | Gives an element a unique identification. |
lang | Designates the language of the text used in an element. |
spellcheck | States whether or not an element needs its spelling checked for error. |
style | Designates an inline CSS style for an element. |
tabindex | Changes how tabbing works within an element. |
title | Adds extra information about an element. |
translate | Designates whether or not the language used within an element needs to be translated. |