W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Re: A *:body pseudo class

From: Edward O'Connor <eoconnor@apple.com>
Date: Fri, 31 Jan 2014 14:37:32 -0800
To: www-style@w3.org
Message-id: <m2vbwz3hhv.fsf@eoconnor.apple.com>
Hi Leif,

You wrote:

> This might well have been thought of already. But when designing/
> styling some HTML documents as a book, I found myself repeatedly
> adding div elements of the following kind:
>
> <section>
>  <h1> Headding</h1>
>  <div class="body-text">
>    <p>Lorem
>    <p>Ipsum
>    <p>Dolor
>    <p>Sint
>  </div>
> </section>

I think you're looking for <main>:

> The main element can be used as a container for the dominant contents
> of another element. It represents its children.

See http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-main-element


Ted

P.S. Yes, I realize the W3C version of the spec forbids <main> from
appearing more than once on a page. There's an open bug on this.
Received on Friday, 31 January 2014 22:37:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:39 UTC