Global attributes
HTML Global Attributes Reference
Global attributes provide common identification, language, accessibility, editing, focus, and styling controls across HTML elements.
Value
accesskey, autocapitalize, autofocus, class, contenteditable, data-*, dir, draggable, enterkeyhint, hidden, id, inert, inputmode, lang, nonce, part, popover, role, slot, spellcheck, style, tabindex, title, translate
Applicable elements
- All HTML elements
Examples
Combining global attributes
<p id="status" class="notice" lang="en" title="Current status">Available</p>