GlobalAttribute
API reference › HTML Attribute › Values › GlobalAttribute
Represents HTML global attribute names.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes.
| Case | Value | Description |
|---|---|---|
ACCESSKEY | 'accesskey' | accesskey — Keyboard shortcut to activate or add focus to the element. |
ANCHOR | 'anchor' | anchor — Associates a positioned element with an anchor element. |
AUTOCAPITALIZE | 'autocapitalize' | autocapitalize — Controls whether and how text input is automatically capitalized. |
AUTOCORRECT | 'autocorrect' | autocorrect — Controls whether autocorrection is enabled for editable text. |
AUTOFOCUS | 'autofocus' | autofocus — Indicates that the element should be focused on page load. |
CLASS_CSS | 'class' | class — Space-separated list of class names for the element. |
CONTENTEDITABLE | 'contenteditable' | contenteditable — Indicates whether the element’s content is editable. |
DATA | 'data' | data-* — Custom data attributes for storing extra information on elements. |
DIR | 'dir' | dir — Defines the text directionality of the element. |
DRAGGABLE | 'draggable' | draggable — Indicates whether the element can be dragged. |
ENTERKEYHINT | 'enterkeyhint' | enterkeyhint — Hints what action label to present for the enter key on virtual keyboards. |
EXPORTPARTS | 'exportparts' | exportparts — Exports shadow parts from a shadow tree to a containing tree. |
HIDDEN | 'hidden' | hidden — Indicates that the element is not yet, or is no longer, relevant. |
ID | 'id' | id — Defines a unique identifier for the element. |
INERT | 'inert' | inert — Indicates that the element and its descendants are not interactive. |
INPUTMODE | 'inputmode' | inputmode — Hints at the type of data that might be entered for virtual keyboard optimization. |
IS | 'is' | is — Specifies that a standard HTML element should behave like a defined custom element. |
ITEMID | 'itemid' | itemid — The unique, global identifier of an item in microdata. |
ITEMPROP | 'itemprop' | itemprop — Adds properties to an item in microdata. |
ITEMREF | 'itemref' | itemref — References elements that are not descendants of the element with the itemscope attribute. |
ITEMSCOPE | 'itemscope' | itemscope — Defines the scope of associated metadata in microdata. |
ITEMTYPE | 'itemtype' | itemtype — Specifies the URL of the vocabulary that will be used to define item properties in microdata. |
LANG | 'lang' | lang — Defines the language of the element’s content. |
NONCE | 'nonce' | nonce — Cryptographic nonce used by Content Security Policy to determine whether a given fetch will be allowed. |
PART | 'part' | part — Space-separated list of part names of the element exposed to parent trees via shadow DOM. |
POPOVER | 'popover' | popover — Designates an element as a popover element and specifies its type. |
ROLE | 'role' | role — Defines an explicit ARIA role for the element. |
SLOT | 'slot' | slot — Assigns a slot in a shadow DOM shadow tree to an element. |
SPELLCHECK | 'spellcheck' | spellcheck — Defines whether the element may be checked for spelling errors. |
STYLE | 'style' | style — Contains inline CSS styling declarations to be applied to the element. |
TABINDEX | 'tabindex' | tabindex — Indicates if the element can be focused and its relative order for sequential focus navigation. |
TITLE | 'title' | title — Contains advisory information related to the element. |
TRANSLATE | 'translate' | translate — Specifies whether an element’s attribute values and text content should be translated. |
VIRTUALKEYBOARDPOLICY | 'virtualkeyboardpolicy' | virtualkeyboardpolicy — Controls the behavior of the virtual keyboard on devices such as tablets and phones. |
WRITINGSUGGESTIONS | 'writingsuggestions' | writingsuggestions — Controls whether writing suggestions are enabled in the browser for the element. |