On 18 Aug 2010, at 23:40, Rob Crowther wrote:
On 18/08/10 17:51, tee wrote:
This example doesn't look very semantic to me :-) Is there a tag
that can replace or substitute the use of headings?
If you properly nest your <section> and <article> elements then you
can use just <h1> everywhere:
<section>
<h1>Monday</h1>
<article>
<h1>First post</h1>
<p>...
</article>
<article>
<h1>Second post</h1>
<p>...
</article>
</section>
<section>
<h1>Tuesday</h1>
<article>
<h1>First post...
The weight of each heading is then determined by the outlining
algorithm:
http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#outlines
So the section or article elements could be taken out of context and
displayed elsewhere but retain their <h1> headings.
You could, but I still use the h1 to h2 inside the sections because no
browser uses the sectioning algorithm for thing like styling. So all
the H1s will be the size set by the h1 selector, unless you do
something like:
section h1 { }
section + section h1 { }
section + section + section h1 { }
etc… which is verbose.
Is this what you meant?
There was some discussion about replacing h1-6 with, simply, <h> and
letting the outline algorithm determine the weight, but this was
eventually dropped for backwards compatibility reasons.
Rob
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************
David Storey
Chief Web Opener / Product Manager, Opera Dragonfly
W3C WG: Mobile Web Best Practices / SVG Interest Group
Opera Software ASA, Oslo, Norway
Mobile: +47 94 22 02 32 / E-Mail/XMPP: [email protected] / Twitter:
dstorey
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************