mozilla

Revision 38535 of Global attributes

  • Revision slug: HTML/Global_attributes
  • Revision title: Global attributes
  • Revision id: 38535
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment page created, 172 words added

Revision Content

WORK IN PROGRESS

HTML defines a few attributes that are common to all HTML elements.

accesskey
This attribute hints for the generation of a keyboard shortcut for the current element. This attribute consists on a space-separated list of characters (one single Unicode code point). The browser should use the first one that exists on the computer keyboard layout.
{{ HTMLVersionInline("4") }} In previous versions of HTML, only one character could be specified. Also it wasn't a global attribute and could be applied only to the {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("label") }}, {{ HTMLElement("legend") }} and {{ HTMLElement("textarea") }}.
class
Lorem ipsum
contenteditable {{ HTMLVersionInline("5") }}
Lorem ipsum
contextmenu {{ HTMLVersionInline("5") }}
Lorem ipsum
dir
Lorem ipsum
draggable {{ HTMLVersionInline("5") }}
Lorem ipsum
hidden {{ HTMLVersionInline("5") }}
Lorem ipsum
id
Lorem ipsum
itemid {{ HTMLVersionInline("5") }}
Lorem ipsum
itemprop {{ HTMLVersionInline("5") }}
Lorem ipsum
itemref {{ HTMLVersionInline("5") }}
Lorem ipsum
itemscope {{ HTMLVersionInline("5") }}
Lorem ipsum
itemtype {{ HTMLVersionInline("5") }}
Lorem ipsum
lang
Lorem ipsum
spellcheck {{ HTMLVersionInline("5") }}
Lorem ipsum
style
Lorem ipsum
tabindex
Lorem ipsum
title
Lorem ipsum

Revision Source

<p>WORK IN PROGRESS</p>
<p>HTML defines a few attributes that are common to all HTML elements. </p>
<dl> <dt><a name="attr-accesskey">accesskey</a></dt> <dd>This attribute hints for the generation of a keyboard shortcut for the current element. This attribute consists on a space-separated list of characters (one single Unicode code point). The browser should use the first one that exists on the computer keyboard layout.<br> {{ HTMLVersionInline("4") }} In previous versions of HTML, only one character could be specified. Also it wasn't a global attribute and could be applied only to the {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("label") }}, {{ HTMLElement("legend") }} and {{ HTMLElement("textarea") }}.</dd> <dt><a name="attr-class">class</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-contenteditable">contenteditable</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-contextmenu">contextmenu</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-dir">dir</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-draggable">draggable</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-hidden">hidden</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-id">id</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-itemid">itemid</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-itemprop">itemprop</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-itemref">itemref</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-itemscope">itemscope</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-itemtype">itemtype</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-lang">lang</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-spellcheck">spellcheck</a> {{ HTMLVersionInline("5") }}</dt> <dd>Lorem ipsum</dd> <dt><a name="attr-style">style</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-tabindex">tabindex</a></dt> <dd>Lorem ipsum</dd> <dt><a name="attr-title">title</a></dt> <dd>Lorem ipsum</dd>
</dl>
Revert to this revision