Hi Tee,
There's a bit of debate about correct use of H1, but this explanation is
based on the using H1 to be equivalent to the title of a book or paper.
You only have one H1 because you only need the title once, if you view a
document as a tree (not to be confused with the document object model
tree) then H1 will be the top-level node. Within a document you can
have numerous sections or chapters and the title of these would be
represented by H2 tags, so you can have as many H2 tags as you want. As
far as I know there's no reason you can't have multiple H2 tags.
I might structure a document like this:
<h1>Title</h1>
<h2>Article Title</h2>
<h3>Summary</h3>
<h3>Article Body</h3>
<h3>Comments</h3>
<h2>Appendices (Secondary Content, Sidebar etc)</h2>
<h3>Sidebar Section, eg Recent Entries</h3>
<h3>Colophon</h3>
<h3>Blogroll</h3>
Content can go after any of these headings but would structurally be
linked to the immediately preceding heading.
As for the AListApart example, I think any of the approaches are
probably ok, but with your idea i'm not so sure about the paragraph tags
around the heading. I'd either remove the closing tags after the closing
emphasis so the paragraph continues and just use a line break or i'd use
one of the other approaches.
I am a little uncertain about the use of headings on AListApart, there
doesn't seem to be any real rule that they follow.
Regards,
Andrew Ingram
Tee G. Peng wrote:
Hi, I just wanted to make sure I am not overly obsess with DL.
After I finally learned how to used the DL properly, I have used it
so sparingly in many websites in the past few months.
I learned, the DL is good for dialogues, for product teasers, but how
about this (http://www.alistapart.com/topics/code)?
BROWSERS (44 articles)
Does your content travel well?...
CSS (81 articles)
Using Cascading Style Sheets (CSS) ...
I remember the first time I learned about the use of DL was actually
studying ALAP's source code, and I remember it used to be marked up
this way in the old site
<dl>
<dt>BROWSERS (44 articles)</dt>
<dd>Does your content travel well?...></dd>
</dl>
It is now with <h2> and <p> tags.
My uncertainty is that, within a page, structurally, it really should
have only one h1, h2 and so on within an ID selector. So having so
many set of <h2>+<p> isn't structural.
I am thinking perhaps using the following makes it more structural
sounds and the <em> gives more weight for SEO.
<p><em>BROWSERS</em></p>
<p>Does your content travel well?...></p>
But I just can't get over with the DL :-)
tee
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************