Forum Moderators: Robert Charlton & goodroi
[edited by: Robert_Charlton at 11:30 pm (utc) on Oct 30, 2016]
[edit reason] removed identifiable specifics, per forum Charter [/edit]
I'd like to plant 'nichename photography' somewhere but that would mean above the thumbnails leading to each gallery and I don't feel it would be aesthetically pleasing.
Then a second H1 can announce a second unit of content comprising a different but related topic.
4.3.10.1 Creating an outlineWarning! There are currently no known implementations of the outline algorithm in graphical browsers or assistive technology user agents, although the algorithm is implemented in other software such as conformance checkers. Therefore the outline algorithm cannot be relied upon to convey document structure to users. Authors are advised to use heading rank (h1-h6) to convey document structure.
only two things in your mark-up affect the outline of a Web page:
- heading content (h1 to h6 and hgroup),
- sectioning content (section, article, aside and nav).
The sectioning of content is the new HTML5 way to create outlines. An implicit section is ended by a heading of the same level or higher...
One of the most talked about features of HTML5 is that multiple h1 elements are allowed, and this is why. It's not an open invitation to mark up every heading on the page as h1; rather, it’s an acknowledgement that where sectioning content is used, it creates the outline, and that each explicit section has its own heading structure.
"Sections may contain headings of any rank, but authors are strongly encouraged to either use only h1 elements, or to use elements of the appropriate rank for the section’s nesting level."
I would strongly advise that until browsers -- and, more critically, screen readers -- understand that sectioning content introduces a sub-section, using multiple h1 elements is less safe than using a heading structure that reflects the level of each heading in the document, as shown in figure 6 below.
But if you remember the basics -- that section, article, aside and nav create sub-sections on Web pages -- then you are 90% of the way there. Get used to marking up content with sectioning elements and to checking your pages in the outliner, because the more you practice creating well-outlined documents, the sooner you will grasp the algorithm.
Authors are advised to use heading rank (h1-h6) to convey document structure.
Then a second H1 can announce a second unit of content comprising a different but related topic.
The six heading elements, H1 through H6, denote section headings. Although the order and occurrence of headings is not constrained by the HTML DTD, documents should not skip levels (for example, from H1 to H3), as converting such documents to other representations is often problematic.
<body>
<h1>Let's call it a draw(ing surface)</h1>
<section>
<h1>Diving in</h1>
</section>
<section>
<h1>Simple shapes</h1>
</section>
<section>
<h1>Canvas coordinates</h1>
<section>
<h1>Canvas coordinates diagram</h1>
</section>
</section>
<section>
<h1>Paths</h1>
</section>
</body>
<body>
<h1>Let's call it a draw(ing surface)</h1>
<section>
<h2>Diving in</h2>
</section>
<section>
<h2>Simple shapes</h2>
</section>
<section>
<h2>Canvas coordinates</h2>
<section>
<h3>Canvas coordinates diagram</h3>
</section>
</section>
<section>
<h2>Paths</h2>
</section>
</body>
Using only h1 elements in a HTML document results in a flat document outline as heading element semantics are conveyed to users as per the numeric in the heading element tag name.