HTML Global Attributes
Global attributes can be used for all HTML tags.
Global attributes list:
Attribute | Value | Description |
accesskey | A-Z, a-z | shortcut character to focus the element |
align | left, right, center | text alignment |
class | style class name | |
contenteditable | true, false | content can be editted or not |
contextmenu | ||
data-{...} | custom defined attribute | |
dir | ltr, rtl | ltr: left to right; rtl: right to left |
draggable | true, false, auto | element can be dragged or not |
hidden | true, false | element will not be shown on the page |
id | unique id for the element | |
lang | language code | language used for the element |
spellcheck | true, false, or no value | check the spell when user typing |
style | ||
tabindex | order number of the tab shortcut | |
title | text information |