HTML and CSS Reference
In-Depth Information
Notes
• The hgroup element is used to control the HTML5 sectioning algorithm. Its primary
purpose is to collapse elements that would normally add outline entries into a
single entry. For example, when multiple headings ( h1 - h6 ) are used, they will
individually add items to the outline. By containing headings together in the
hgroup element, they form only a single entry in an outline. As demonstrated in the
preceding example, the need for this element is mostly to support subheadings.
• This element was added much later than many other HTML5 elements, and there is
some controversy over what it should be called.
• While this element is not yet supported, it is easily simulated by using a custom tag
or using a <div> tag with a special class.
<hr> (Horizontal Rule)
This element is used to insert a horizontal rule to visually or thematically separate
document sections. Rules usually are rendered as a raised or etched line.
Standard Syntax
<hr
align="center | left | right" (transitional only)
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"id="unique alphanumeric identifier"
noshade="noshade " (transitional only)
size="pixels" (transitional only)
style="style information"
title="advisory information"
width="percentage | pixels"> (transitional only)
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
spellcheck="true | false"
tabindex="number"
Attributes Defined by Internet Explorer
accesskey="key" (5.5)
color="color name | #RRGGBB" (4)
language="javascript | jscript | vbs | vbscript" (4)
Search WWH ::




Custom Search