A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Difference between revisions of "Hgroup element"

From WHATWG Wiki
Jump to navigation Jump to search
m (removed Category:Proposals using HotCat)
Line 243: Line 243:
* Amazon
* Amazon
* Wikipedia
* Wikipedia

Latest revision as of 06:16, 28 September 2014

This document is obsolete.

For the current specification, see: HTML: <hgroup>

Real World Examples

The following are real world pages all using various structures to mark up subtitles and taglines for page and article headers. Each one contains the markup copied and pasted directly from the site, only modified where necessary to tidy up whitespace or to omit irrelevant content from the header where indicated.

The Telegraph (UK)

Example article: Coca Cola recipe 'discovered'

<div class="storyHead">
  <h1>Coca Cola recipe 'discovered'</h1>
  <h2>A website claims to have uncovered Coca-Cola's top secret recipe.</h2>

National Geographic

Example article: Einstein Theories Confirmed by NASA Gravity Probe

<div id="page_head">
  <h1>Einstein Theories Confirmed by NASA Gravity Probe</h1>
  <h2 class="subtitle">Space mission did what the famed physicist said would be impossible.</h2>

Project Gutenberg

Example article: The War of the Worlds, by H. G. Wells

<h3 class="chapnum">CHAPTER ONE</h3>
<h3 class="chaptitle">THE EVE OF THE WAR</h3>

Example article: The Madcap of the School, by Angela Brazil.

<div style="margin: auto; text-align: center; padding-top: 0pt; padding-bottom: 1em;">
  <h2>CHAPTER I</h2>

Example article: A Tale of Two Cities, by Charles Dickens

<h2>By Charles Dickens</h2>

Note further markup:

<h2 class="booknum">BOOK ONE</h2>
<h3 class="chapnum">CHAPTER ONE</h3>
<h3 class="chaptitle">THE EVE OF THE WAR</h3>


Example article: When Copyright And Contracts Can Get In The Way Of Art

<div class="story">
  <h1>When Copyright And Contracts Can Get In The Way Of Art</h1>
  <h3>from the <i>tales-from-the-creative-front-lines</i> dept</h3>


<div id="topRightContainer">
  <div id="logo">
    <a href="/"><img src="http://imgs.xkcd.com/s/9be30a7.png" alt="xkcd.com logo" height="83" width="185"/></a>
    <h2><br />A webcomic of romance,<br/> sarcasm, math, and language.</h2>
    <div class="clearleft"></div>
    <br />
    XKCD updates every Monday, Wednesday, and Friday.

Yahoo! Finance

Example article: Gas prices expected to drop 50 cents by summer

<div id="y-article-hd">
  <h1 class="test1">Gas prices expected to drop 50 cents by summer</h1>
  <h2>After 44 days of surging gas prices, analysts expect drop of 50 cents by summer driving season<br></h2>
  <a href="http://us.rd.yahoo.com/finance/news/apf/SIG=10kfmofol/*http://www.ap.org/termsandconditions" rel="nofollow"><img src="http://l.yimg.com/a/i/us/fi/gr/ap_106x27.gif" alt="ap" class="sponsorimage"></a>	

Oxford English Dictionary

    <p>Discover the story of English</p>
    <span class="blurb">
      <p>More than 600,000 words, over a thousand years</p>

Dive Into Accessibility

<div id="logo">
  <div class="inner">
    <h1 class="title"><a href="/" accesskey="1">Dive Into Accessibility</a></h1>
    <p>30 days to a more accessible web site</p>
    <a class="skip" href="#startnavigation">Skip to navigation</a>
    <span class="divider">&nbsp;</span>

Calgary Herald

Example article: Cooking Solo Grows Up

<div id="storyheader">
  <div class="headline">
    <h1>Cooking Solo Grows Up</h1>
  <div class="clear">&nbsp;</div>
  <div class="subheadline">
    <h2>On your own? You no longer have to put up with cereal over the sink or days of the same old leftovers. Joe Yonan shows us why</h2>
  <div class="clear">&nbsp;</div>
  <div class="byline">
    <span class="name">By Gwendolyn Richards, Calgary Herald</span>
    <span class="timestamp">May 8, 2011 2:06 AM</span>
    <span id="lblComment" class="comments"></span>
  <div class="clear">&nbsp;</div>


Example page: Coda - One-Window Web Development for Mac OS X

<div id="header">
  <h1><a href="/coda/" title="Coda">Coda</a></h1>
  <p>One window web development.*</p>

Example page: Unison - The Best Usenet Browser / Newsreader, Only For Mac OS X

  <a href="http://www.panic.com/unison/" title="Unison - The Best Usenet Browser">Unison</a>
  the best usenet browser


Example article: Top 15 Android Apps For Smartphone Shutterbugs

<div id="articleHead">
  <h1>Top 15 Android Apps For Smartphone Shutterbugs</h1>
  <h2>Use these Android apps to add effects to your mobile photos and make them easier to take.</h2>

  <p class="byline">By <a href="/author/Daniel-Ionescu">Daniel Ionescu</a>,
     <a href="http://www.pcworld.com/" target="_blank">PCWorld</a>
     &nbsp;&nbsp; <script type="text/javascript">timestamp(1304707200000,'longDateTime')</script>May 6, 2011 8:40 pm</p>


Example article: Elgan: How to pop your Internet 'filter bubble'

<div id="article_header" class="clearfix">
  <div id="content_type">Opinion</div>
  <h1>Elgan: How to pop your Internet 'filter bubble'</h1>
  <h2>Personalization algorithms are stereotyping you, then hiding information from you based on that stereotype. Wait -- what?</h2>
  <div id="byline">By Mike Elgan</div>
  <div id="date">May 7, 2011 08:00 AM ET</div>


<header class="row flushpad" id="hero">
<h1><img width="686" height="102" class="center" alt="It’s amazing to look at. And even more amazing to  use." src="http://images.apple.co
<h2 class="intro center">A big, bold display. <span class="nowrap">Third-generation</span> <span class="nowrap">Intel
quad-core</span>  processors and the latest NVIDIA graphics. <span class="nowrap">Cutting-edge</span> storage options. And much more.
No desktop has ever brought so much to the table.</h2>
<div id="content">
    <a href="/pr/products/ipad/ipad.html" onclick="s_objectID=&quot;http://www.apple.com/pr/products/ipad/ipad.html_1&quot;;return
this.s_oc?this.s_oc(e):true">iPad 2 images</a>

  <h1>Apple Launches iPad 2</h1>
  <h2 class="subtitle"><div>All New Design is Thinner, Lighter & Faster with FaceTime, Smart Covers & 10 Hour Battery</div></h2>
    SAN FRANCISCO—March 2, 2011—Apple® today introduced iPad™ 2...

DocBook XSL Stylesheets

  • All content generated from DocBook yields the following output for title/subtitle (actualy heading levels can vary depending on the depth of element with title/subtitle):
<div class="titlepage">
  <h2 class="title">Title</h2>
  <h3 class="subtitle">Subtitl</h3>


  <h1><a href="http://miniapps.co.uk/" title="Home page"><span>MiniApps</span></a></h1>
  <h2>Beautifully crafted mobile web apps.</h2>

InterACT with Web Standards

  <span id="title">InterACT With <strong>Web Standards</strong></span>
  <span id="subtitle">A Holistic Approach to Web Design</span>

From the Swedish Magazine Fokus

<p><em>Tio republikanska kandidater som kan bli ett hot mot Obamas andra presidentperiod.</em></p>

The Guardian (UK)

Example article: US prisoners refused all books except Bible

<div id="main-article-info">
  <h1>US prisoners refused all books except Bible</h1>
  <p id="stand-first" class="stand-first-alone">American Civil Liberties Union says jail in South Carolina is banning books 'for no good reason'</p>

Web sites that do not markup up subtitles at all

Perhaps because the developers lack a compelling pattern?

  • IMDB
  • Amazon
  • Wikipedia