|
Posted by Andy Dingley on 08/07/06 11:08
Andy Mabbett wrote:
> What's the point of:
>
> <div id="header">xnot.org</div>
>
> when we have <Hn> tags?
<h*> tags can be repeated. Their "headerness" is an attribute.
<div id="header"> can't be repeated. Its "headerness" is ordinal, i.e.
it doesn't state "This is a header, potentially one of many that also
have header status" it states "This is _the_ header".
So it's quite reasonable to
<div id="header">xnot.org</div>
or indeed
<div id="header"><h1>xnot.org</h1></div>
If you look at a more complex potential case it might be more obvious
why this is useful to web design:
<div id="header">
<h1>XNot - Not just your usual X!</h1>
<p class="url" >xnot.org</p>
</div>
<div id="body">
<h2>Some Stuff</h2>
[...]
</div>
So although there's some overlap about "header", then there's still a
big (and useful) difference between the two.
In general though, this is a bad CSS tutorial that is itself badly
marked up. I wouldn't recommend it, at a "waste of bytes" level of such
things.
Navigation:
[Reply to this message]
|