You are here: Re: Semantics & <h1>, <h2>, etc « HTML « IT news, forums, messages
Re: Semantics & <h1>, <h2>, etc

Posted by Chaddy2222 on 08/08/06 05:10

David Woods wrote:
> I appreciate the many discussions about marking up a page semantically. I
> don't mean to rehash old arguments/discussions, but I am a little confused
> as to the proper way to handle headers.
>
> In the web pages I have created I typically put a div stretching across the
> screen in which I put a logo, the title of the organization, and possibly
> other pictures, slogans, etc. In the main content div, I typically will put
> a unique header for that page followed by paragraphs, etc.
>
> What should be marked up as <h1></h1>? The title of the organization in the
> header/banner div? Or, the first header in the main content div?
>
> Which of the following examples should I use? Or can you provide a more
> proper example?
>
> 1)
> <div id="header">
> <img ...>
> <h1>Title of the organization</h1>
> </div>
> <div id="content>
> <h2>Title of this page</h2>
> <p>...</p>
> </div>
>
> 2)
> <div id="header">
> <img ...>
> <p>Title of the organization</p>
> </div>
> <div id="content>
> <h1>Title of this page</h1>
> <p>...</p>
> </div>
>
> Thanks,
>
Hi.
I would be personally inclined to go with the first example, it seams
more logical, as you have the main info in the <h1> tag and the title
of the document as the second heading. So I think your first example is
fine.
--
Regards Chad. http://freewebdesign.cjb.cc

 

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

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