Skip to content

Commit c9b575f

Browse files
authored
Include grouping (#28)
* Include grouping * Rebuild docs
1 parent 52d6a06 commit c9b575f

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

docs/index.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,73 @@ <h2 id="title-about">About</h2>
100100
<!-- Start of #main -->
101101
<main id="main" tabindex="-1">
102102

103+
<!-- Start of #section-grouping -->
104+
<section id="section-grouping" aria-labelledby="title-grouping">
105+
<h2 id="title-grouping">Grouping</h2>
106+
107+
<address aria-labelledby="subsection-address">
108+
<h3 id="subsection-address">Address</h3>
109+
<p><cite>Represents the contact information for its enclosing section. If it is a child of the body element, then it applies to the document as a whole.</cite></p>
110+
<p><a rel="external noopener" href="https://html5doctor.com/the-address-element/">HTML5 Doctor prognosis of <code translate="no">&lt;address&gt;</code></a>.</p>
111+
</address>
112+
113+
<article aria-labelledby="subsection-article">
114+
<h3 id="subsection-article">Article</h3>
115+
<p><cite>Represents a section of a page that consists of a composition that forms an independent part of a document, page, or site.</cite></p>
116+
<p><a rel="external noopener" href="https://html5doctor.com/the-article-element/">HTML5 Doctor prognosis of <code translate="no">&lt;article&gt;</code></a>.</p>
117+
</article>
118+
119+
<aside aria-labelledby="subsection-aside">
120+
<h3 id="subsection-aside">Aside</h3>
121+
<p><cite>Represents a section of a page consisting of content that is tangentially related to the content around the <code translate="no">&lt;aside&gt;</code> element, and which could be considered separate from that content.</cite></p>
122+
<p><a rel="external noopener" href="https://html5doctor.com/aside-revisited/">HTML5 Doctor prognosis of <code translate="no">&lt;aside&gt;</code></a>.</p>
123+
</aside>
124+
125+
<footer aria-labelledby="subsection-footer">
126+
<h3 id="subsection-footer">Footer</h3>
127+
<p><cite>Represents the &ldquo;footer&rdquo; of a document or section of a document. The footer element typically contains metadata about its enclosing section, such as who wrote it, links to related documents, copyright data, etc.</cite></p>
128+
<p><a rel="external noopener" href="https://html5doctor.com/the-footer-element-update/">HTML5 Doctor prognosis of <code translate="no">&lt;footer&gt;</code></a>.</p>
129+
</footer>
130+
131+
<form aria-labelledby="subsection-form">
132+
<h3 id="subsection-form">Form</h3>
133+
<p><cite>The &ldquo;form&rdquo; element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing.</cite></p>
134+
</form>
135+
136+
<header aria-labelledby="subsection-header">
137+
<h3 id="subsection-header">Header</h3>
138+
<p><cite>Represents the &ldquo;header&rdquo; of a document or section of a document. The header element is typically used to group a set of <code translate="no">h1</code><code translate="no">h6</code> elements to mark up a page's title with its subtitle or tagline.</cite></p>
139+
<p><a rel="external noopener" href="https://html5doctor.com/the-header-element/">HTML5 Doctor prognosis of <code translate="no">&lt;header&gt;</code></a>.</p>
140+
</header>
141+
142+
<nav aria-labelledby="subsection-nav">
143+
<h3 id="subsection-nav">Nav</h3>
144+
<p><cite>Represents navigation for a document. The <code translate="no">&lt;nav&gt;</code> element is a section containing links to other documents or to parts within the current document.</cite></p>
145+
<p><a rel="external noopener" href="https://html5doctor.com/nav-element/">HTML5 Doctor prognosis of <code translate="no">&lt;nav&gt;</code></a>.</p>
146+
</nav>
147+
148+
<search aria-labelledby="subsection-search">
149+
<h3 id="subsection-search">Search</h3>
150+
<p><cite>A region that contains a collection of items and objects that, as a whole, combine to create a search facility.</cite></p>
151+
</search>
152+
153+
<section aria-labelledby="subsection-section">
154+
<h3 id="subsection-section">Section</h3>
155+
<p><cite>Represents a generic document or application section.</cite></p>
156+
<p><a rel="external noopener" href="https://html5doctor.com/the-section-element/">HTML5 Doctor prognosis of <code translate="no">&lt;section&gt;</code></a>.</p>
157+
</section>
158+
159+
<h2 id="notes-sections">Notes:</h2>
160+
<ul>
161+
<li><small><code translate="no">&lt;body&gt;</code> is intentionally left out, as it can only be declared once per document.</small></li>
162+
<li><small><code translate="no">&lt;main&gt;</code> is also intentionally left out, as <a rel="external noopener" href="https://adrianroselli.com/2015/09/use-only-one-main-on-a-page.html">best practice is to only declare it once per document</a>.</small></li>
163+
<li><small><code translate="no">aria-label</code> and <code translate="no">aria-labelledby</code> can be used to disambiguate landmarks when more than one is present. You may not need to do this <a rel="external noopener" href="https://adrianroselli.com/2024/06/maybe-dont-name-that-landmark.html">if only one landmark is present</a>.</small></li>
164+
<li><small><code translate="no">&lt;search&gt;</code>’s use may <a rel="external noopener" href="https://www.scottohara.me/blog/2023/03/24/search-element.html">require testing for support</a>.</small></li>
165+
</ul>
166+
</section><!-- End of #section-grouping -->
167+
168+
<hr />
169+
103170
<!-- Start of #section-headings -->
104171
<section id="section-headings" aria-labelledby="title-headings">
105172
<h2 id="title-headings">Headings</h2>

views/index.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
<!-- Start of #main -->
2121
<main id="main" tabindex="-1">
2222

23+
{{> section.grouping}}
24+
25+
<hr />
26+
2327
{{> section.headings}}
2428

2529
<hr />

0 commit comments

Comments
 (0)