You are here: Re: new CSS tutorial « HTML « IT news, forums, messages
Re: new CSS tutorial

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация