It is currently Sat Dec 02, 2017 4:21 pm Advanced search
Yes, although it isn't called <h> it's called any of <h1> to <h6>. If you use sectioning elements and you don't care about the document outline degrading gracefully in legacy UAs then you can use <h1> for all your headings. See http://www.whatwg.org/specs/web-apps/cu ... #headings0matt clark wrote:I notice html 5 has a section element, but does it have a <h> tag, as xhtml 2 does, which "knows" what level it is from its position in the hierarchy.
<heading>
<h1>Introduction to the Solar System</h1>
<h2>Learn about the inner planets</h2>
</heading>
It wouldn't be backwards compatible with legacy UAs. At least if you use H1 for all your headings, legacy UAs know that it is a heading, just not which level. If this is still a concern (which would be understandable) you are free to use the other heading elements so that it would degrade completely in legacy UAs.matt clark wrote:What's the reason for not choosing a hierarchically neutral element name (like <h>?), out of interest?
zcorpan wrote:Yes, although it isn't called <h> it's called any of <h1> to <h6>. If you use sectioning elements and you don't care about the document outline degrading gracefully in legacy UAs then you can use <h1> for all your headings. See http://www.whatwg.org/specs/web-apps/cu ... #headings0matt clark wrote:I notice html 5 has a section element, but does it have a <h> tag, as xhtml 2 does, which "knows" what level it is from its position in the hierarchy.
Interesting. This doesn't sound very useful to me, and I can imagine that it doesn't work well with real Web pages even today. Perhaps they should consider changing their implementation.legendscrolls wrote:From my experience some web browsers such as WebbIE prefix 'Page Headline: ' to all <h1>'s
Indeed.legendscrolls wrote: which would certainly be very annoying for those with visual disabilities and using such text-based browsers with speech software listening to 'Page Headline: ' everywhere a <h1> is used.
I agree.legendscrolls wrote:I would suggest authors either use one <h1> for the very first heading of a document and then use <h2> (as the highest ranking, not-make-a-fuss heading) for all other headings or use <h2> for absolutely all headings instead of all <h1>s.
This would be practical accessibility.
So you're saying that "Page Headline:" is prepended to all h1-h6 elements? If so, then it wouldn't make any difference if the author used <h1> for all headings or <h2> for all headings.alasdair wrote:Right, WebbIE's headline handling works thus:
1 Check page for any H1 elements. If found, mark them with "Page Headline:" and stop.
2 Check page for any H2 elements. If found, mark them with "Page Headline:" and stop.
3 Check page for any H3 elements .... et cetera.
Wouldn't it be more useful if only the first highest-level heading gets "Page Heading:" prepended to it, rather than all elements of that level?
Users browsing this forum: No registered users and 1 guest