Global Attributes in HTML
Attribute |
Value |
Description |
accesskey |
shortcut_key |
Accesskey attribute specifies a shortcut key to activate/focus an element |
class |
class_name |
Specifies a class name or space-separated list of class names to an element |
contenteditable |
true false |
Specifies whether the content of an element is editable by the user or not |
contextmenu |
menu_id |
Defines the id for the <menu> element which is used as a context menu for an element |
data-* |
data |
Used to store custom data private to the page or application |
dir |
rtl ltr suto |
Specifies the direction of the content inside the current element |
draggable |
true false auto |
Specifies whether the content within an element is movable or not using Drag and Drop API |
dropzone |
copy move link |
Specifies whether the dragged data is copied, moved, or linked, when dropped |
hidden |
hidden |
Specifies that an element is not yet, or is no longer, relevant |
id |
id |
Specifies a unique id for an element |
lang |
language_code |
Specifies the primary language for the content of an element |
spellcheck |
true false |
Specifies whether the content should be checked for spelling errors or not |
style |
style |
Specifies inline style information for an element |
tabindex |
number |
Specifies the tabbing order of an element |
title |
text |
Used to provide the title, name, or some extra information about the element |
translate |
yes no |
Specifies whether the content of an element should be translated or not |