W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: Proposal: <content> element

From: Thomas Broyer <t.broyer@ltgt.net>
Date: Fri, 28 Aug 2009 18:24:30 +0200
Message-ID: <a9699fd20908280924g21c13bc9qe6530c2d653b50a@mail.gmail.com>
To: Bill Lipa <dojo@masterleep.com>
Cc: public-html@w3.org
On Fri, Aug 28, 2009 at 5:46 PM, Bill Lipa<dojo@masterleep.com> wrote:
> On Fri, 28 Aug 2009 02:56:41 +0200, Ian Hickson <ian@hixie.ch> wrote:
>
>> We already have a way to mark up the content that isn't the header,
>> footer, sidebars, or navigation: it's the markup that isn't the <header>,
>> <footer>, <aside>, or <nav>.
>
>
> It is harder to apply CSS styles to "markup that isn't nested in some other
> element".
> The main part of the content is likely to need CSS styles in many pages, so
> having an element like <main> would be simpler for authors.

...but as Ian said, if you need a styling hook, use a <div>; either:

   HTML:
      <section>
         <header>header</header>
         <div id=main>content</div>
         <footer>footer</footer>
      </section>
   CSS:
      .main { ... }
      .main a { ... }

or

   HTML:
      <section>
         <header>header</header>
         <div id=main>content</div>
         <footer>footer</footer>
      </section>
   CSS:
      section>div  { ... }
      section>div a { ... }


(that being said, Anne's argument is quite compelling... so for the
moment I have no strong opinion one way or the other on the subject)

-- 
Thomas Broyer
Received on Friday, 28 August 2009 16:25:15 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 October 2014 16:24:51 UTC