W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Use of article to identify the main content of a web page

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 19 Nov 2012 18:08:05 +0000 (UTC)
To: Ian Yang <ian@invigoreight.com>
Message-ID: <Pine.LNX.4.64.1211191805470.26354@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Mon, 19 Nov 2012, Ian Yang wrote:
> On Sat, Nov 17, 2012 at 8:01 AM, Ian Hickson <ian@hixie.ch> wrote:
> > On Thu, 15 Nov 2012, Ian Yang wrote:
> > >
> > > That's a good idea. We really need an element to wrap all the <p>s, 
> > > <ul>s, <ol>s, <figure>s, <table>s ... etc of a blog post.
> >
> > That's called <article>.
> 
> Thanks Hickson. Actually I had turned down my own opinion ( 
> http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Nov/0182.html 
> ).
> 
> And isn't <article> used to wrap an entire blog post? Like this:
> 
> <article>
>     <header />
>     <div />
>     <footer />
> </article>

Right. It wraps all the elements of a blog post. All the <p>s, <ul>s, 
<ol>s, <figure>s, <table>s, <h1>s, <footer>s, etc.

If you just want to wrap a subpart of that for rendering purposes, <div> 
is the element you want. Basically <div> is always the answer if the 
question is "how do I provide myself a hook for CSS styling".

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 19 November 2012 20:43:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT