title | tags | created | modified | |||
---|---|---|---|---|---|---|
docs-web-html-global-attr |
|
2020-07-20T03:10:32.499Z |
2020-07-20T03:11:44.525Z |
- Global attributes
- Global attributes are attributes common to all HTML elements;
- they can be used on all elements, though they may have no effect on some elements.
- Global attributes may be specified on all HTML elements, even those not specified in the standard.
- In addition to the basic HTML global attributes, the following global attributes also exist
xml:lang
andxml:base
- these are inherited from the XHTML specifications and deprecated, but kept for compatibility purposes
- The multiple
aria-*
attributes- used for improving accessibility
- The event handler attributes
- onclick,onchange,ondrag
- attributes
- accesskey
- autocapitalize
- class
- contenteditable
- data-*
- dir
- draggable
- hidden
- inputmode
- is
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- lang
- part
- slot
- spellcheck
- style
- tabindex
- title
- attr-experimental
- translate
- exportparts
- attr-deprecated
- contextmenu
- dropzone
- Element and GlobalEventHandlers interfaces that allow to query most global attributes.