|
Posted by Chris F.A. Johnson on 08/09/06 22:41
On 2006-08-09, Nije Nego wrote:
> On Wed, 9 Aug 2006 16:13:00 -0400, Chris F.A. Johnson wrote:
>
>>>> When there is more to the header than just the title text (which
>>>> should be <h1>), it makes sense to wrap it in <div id="header"></div>.
>>>
>>> I find class, tag, ID and span enough to do pretty much anything with <hx>.
>>
>> If you use class, tag, ID and span without h1, you are not creating
>> a well-structured document.
>>
>> If you use any of them with the only an h1 element inside, they are
>> unnecessary.
>
> When there is more to the header than just the text?
When there is an image, or when there is a subheading or whatever
in the header div.
If there's nothing but the text, all that's needed is an <h1>
element. If there's more, then it should be included in a <div> and
the main headline in <h1>.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Navigation:
[Reply to this message]
|