[html5] Distinguish main article from comments
Ian Hickson
ian at hixie.ch
Sun Nov 18 10:42:52 PST 2012
On Sun, 18 Nov 2012, Brian Tremblay wrote:
> On 11/18/12 8:25 AM, Markus Ernst wrote:
> >
> > there are some types of webpages with a main article, and user
> > comments; these are very common at news websites and blogs. I think it
> > would be useful to mark up the main article specifically in order to
> > give it a higher weight in search engines than the user contributed
> > comments.
>
> I'd say:
>
> <article>
> <h1>Cicero dictos est</h1>
> <p>
> Lorem ipsum dolor sit amet, consectetur
> adipisicing elit,
> sed do eiusmod tempor incididunt ut
> labore et dolore magna aliqua....
> </p>
> <section>
> <h1>comments</h1>
> <article>
> <h1>bonus est</h1>
> <p>great article;
> your Latin is excellent!</p>
> </article>
> <article>
> <h1>malus est</h1>
> <p>terrible article;
> you misspelled "dictus", you moron</p>
> </article>
> </section>
> </article>
>
> That way, the comments are a part of the article, as they should be, but
> each within its own article, and all of them inside a section. So each
> comment is 2 levels down from the main article.
That's indeed what the spec suggests.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help
mailing list