[thelist] skipping 'hx' levels is bad
aardvark
roselli at earthlink.net
Wed Jan 16 13:04:47 CST 2002
> From: "rudy" <r937 at interlog.com>
[...]
> lemme ask you, does your interpretation allow P text inserted "in
> between" these heading levels, like an introductory paragraph?
there is no in-between... it falls under the heading immediately
preceeding it... you don't get to back out of a section without an
<h#> to do it for you...
how else do you have multi-paragraph sections?
> <h1>stooges</h1>
> <p>introductory comments, a page and a half</p>
> <h2>curly</h2>
> <p>stuff about curly</p>
> <h2>larry</h2>
> <p>stuff about larry</p>
> <h2>moe</h2>
> <p>stuff about moe</p>
> <p>wrapup comments</p>
>
> since you are a markup fanatic, tell me where that last paragraph gets
> parsed in the document hierarchy
under <h2>moe</h2>...
by your argument, the second paragraph (and so on) under every
heading would fall out of the hierarchy... imagine what that would
do to a page... you only delimit the closing text by not indenting it,
which doesn't matter to a renderer...
in short, your code example is wrong if you want that last <p> to
be its own section...
> now tell me how to fix it so that it's as "pure and semantically
> correct" as not skipping an H level
[...]
<h2>wrapup</h2>
<p>wrapup comments</p>
at least that's how i do it in my articles...
and then there's the <h1> to <h3> foible...
usually if you think about *why* you want to skip an <h#> level, it's
because you want it to *look* a certain way...
well, that's too bad...
if it's your own site, style your <h2>s differently, or even embed an
inline style (which, IMO, is the wrong thing to do) if it's that
important to you...
generally you should move the content up a 'section'...
More information about the thelist
mailing list