[thelist] Re: Hn tags

fstorr fffrancis at fstorr.demon.co.uk
Tue Jun 25 00:19:00 CDT 2002


but i am pasting this in from an old archive post of mine, and no this
is not an argument either way, just interesting:
http://lists.evolt.org/archive/Week-of-Mon-20020204/068223.html

ISO HTML anyone?  at least *someone* agrees with me...

  --

    The <H1> element shall not be followed by an <H3>, <H4>, <H5> or
<H6> element without an intervening <H2> element.

    The <H2> element shall not be followed by an <H4>, <H5> or <H6>
element without an intervening <H3> element.

    The <H3> element shall not be followed by an <H5> or <H6> element
without an intervening <H4> element.

    The <H4> element shall not be followed by an <H6> element without an
intervening <H5> element.

    An <H2> element shall be preceded by an <H1> element.

    An <H3> element shall be preceded by an <H2> element.

    An <H4> element shall be preceded by an <H3> element.

    An <H5> element shall be preceded by an <H4> element.

    An <H6> element shall be preceded by an <H5> element.

________________________________________________

Okay, so this is good.  Being structurally "picky" I suppose there
should definitely be only 1 H1 tag on a page, maybe one H2, and then as
many of the "lesser" Hn tags as needed. But what if you then need to
back up an Hn level?  From, say, H3 to H2 - is this allowed?  From what
I've read so far, there doesn't seem to be a definitive answer, it
depends on author preference.  Even this from the html spec:

http://www.w3.org/TR/html401/struct/global.html#edef-H1 "Some people
consider skipping heading levels to be bad practice. They accept H1 H2
H1 while they do not accept H1 H3 H1 since the heading level H2 is
skipped."

There's a degree of "fluffyness" there that just seems to say "use
whatever you want, it's up to you".

Francis






More information about the thelist mailing list