Re: A *:body pseudo class

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