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

Posted by Andy Dingley on 08/08/06 00:01

On Sat, 05 Aug 2006 23:12:35 +1000, dorayme
<doraymeRidThis@optusnet.com.au> wrote:

>I think the point was not what the div was named but rather that
>there was a div here at all when an <h1> or <h2> ... would have
>been more appropriate.

<h1> would have been _adequate_ for the snippet we saw, but we can't
infer the _appropriateness_ from such a small sample.

I've a couple of sites where every pages has this at the top:

<div id="header" >
<h1>Foo</h1>
<p class="date" >Thermidor, Year 0</p>
</div>

Now how do I replace that with <h1> ? Lets suppose that one page is
undated. Can I now replace that with <h1> alone ? What about the RSS
generator script I run across these pages, scanning for <div> with
id=header ? What abut the client-side JS shared by all pages, expecting
the header title to be the first <h1> child of the "header" element ?

It's a mistake to be too dogmatic about these purely style-based issues.
There's lot of valid and good-practice solutions to a site, not just one
minimal solution for one single, simple page.

--
Cats have nine lives, which is why they rarely post to Usenet.

 

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

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