W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2015

Re: [whatwg] Site-Wide Heading Element

From: Mark Simon <mark@manngo.net>
Date: Thu, 25 Jun 2015 07:02:52 +1000
Message-ID: <558B1AFC.5020904@manngo.net>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On 24/06/2015 9:08 pm, Jonathan Zuckerman wrote:
>> On Jun 23, 2015, at 22:57, Mark Simon <mark@manngo.net> wrote:
>> (This is my first post here, so I’m not sure about appropriate protocols).
>> HTML5 adds more power to the heading elements, which is a good thing. However, there appears to be no recommended element for marking up a site-wide banner title.
>> Presumably, the correct element is h1 for the banner heading, but this may be at odds with the notion that h1 should describe the specific page. The banner title would be expected to be the same for most, if not all, pages, while the h1 might be expected to be different for each page.
>> While we should not pay too much heed to the whims of search engines, there is the notion that varying the h1 in pages is good for SEO. For this reason many site owners and developers are reluctant to use the main h1 as a banner title.
>> As far as I am aware, there is no suitable HTML(5) element for a site-wide heading. I would like to see the introduction of such an element. Here are some suggestions:
>> * The purpose of the element is to provide a semantically appropriate
>>    container for a site-wide title.
>> *  From a behavioural point of view, it would be similar to an h1
>>    element. That is, a block element with mostly text.
>> * There would be no other special default appearance, much like a
>>    paragraph. CSS can handle the rest.
>> * There should only be one such element on a page, in the body
>>    element. It may be nested inside another suitable element, such as a
>>    header.
>> I have no strong opinion on the name of the element. Some suggestions are: title, banner, name, sitename, site, elementwithoutanyothername.
>> -- 
>> Mark Simon
>> Manngo Net Pty Ltd
>> mobile:0411 246 672
>> email:mark@manngo.net <mailto:mark@comparity.net>
>> web:http://www.manngo.net
>> Resume:http://mark.manngo.net
> What would be the value of such an element? There is an aria-role for "banner" I believe..

There is also an aria-role for “article” but this doesn’t invalidate 
HTML5’s article element. Section 1.4 makes it clear that it is 
preferable for the host language to do the job itself.

In any case, the “banner” role would be more suited to something like a 
div, which is what the header element is doing. The proposed element 
would be more like h1.

How about h0? That would be more in the pattern of things.


  Mark Simon
Received on Wednesday, 24 June 2015 21:04:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:33 UTC