Skip to content

Latest commit

 

History

History
executable file
·
52 lines (49 loc) · 1.33 KB

docs-web-html-global-attr.md

File metadata and controls

executable file
·
52 lines (49 loc) · 1.33 KB
title tags created modified
docs-web-html-global-attr
docs
html
web
2020-07-20T03:10:32.499Z
2020-07-20T03:11:44.525Z

docs-web-html-global-attr

guide

  • 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 and xml: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.