Skip to content

Commit 6d97349

Browse files
donohuechdelisma
authored andcommitted
Update in-page-toc.md
1 parent db3a8cb commit 6d97349

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

common-design-patterns/in-page-toc.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ altLangPage: https://conception.canada.ca/configurations-conception-communes/tab
33
date: null
44
dateModified: '2025-08-20'
55
description: null
6-
title: In-page table of contents design pattern
6+
title: In-page table of contents
77
---
88

99
<p>The in-page table of contents pattern is a list of links that lead to subsections of the same page.</p>
10-
<p><b>On this page</b></p>
10+
<h2>On this page</h2>
1111
<ul>
1212
<li><a href="#when-to-use">When to use</a></li>
1313
<li><a href="#what-to-avoid">What to avoid</a></li>
@@ -16,7 +16,7 @@ title: In-page table of contents design pattern
1616
<li><a href="#latest-changes">Latest changes</a></li>
1717
</ul>
1818
<section>
19-
<h2>When to use</h2>
19+
<h2 id="when-to-use">When to use</h2>
2020
<p>Use the in-page table of contents pattern to:</p>
2121
<ul>
2222
<li>provide an outline for the content of a single page that has multiple subsections</li>
@@ -29,11 +29,11 @@ title: In-page table of contents design pattern
2929
</ul>
3030
</section>
3131
<section>
32-
<h2>What to avoid</h2>
32+
<h2 id="what-to-avoid">What to avoid</h2>
3333
<p>Do not use this pattern when the document exists across several web pages. Instead, use the multi-page table of contents pattern.</p>
3434
</section>
3535
<section>
36-
<h2>Content and design</h2>
36+
<h2 id="content-and-design">Content and design</h2>
3737
<ul>
3838
<li>Always position the in-page table of contents pattern at the top of the page, just below the H1 and any introductory text, before the main content begins</li>
3939
<li>Label the pattern “On this page” to distinguish it from other page content and to provide consistency throughout the site</li>
@@ -43,7 +43,7 @@ title: In-page table of contents design pattern
4343
</ul>
4444
<h3>Visual example</h3>
4545
<figure class="mrgn-bttm-lg">
46-
<img alt='The heading "On this page" is written in bold, black font above a list of links. Below the heading is a bulleted vertical list containing three items.' class="img-responsive center-block" src="/images/in-page-toc-01.png"/>
46+
<img alt='The heading "On this page" is written in bold, black font above a list of links.' class="img-responsive center-block" src="/images/in-page-toc-01.png"/>
4747
<details>
4848
<summary>Image description</summary>
4949
<p>The heading "On this page" is written in bold, black font above a list of links. Below the heading is a bulleted vertical list containing three items:</p>
@@ -57,15 +57,15 @@ title: In-page table of contents design pattern
5757
</figure>
5858
</section>
5959
<section>
60-
<h2>How to implement</h2>
60+
<h2 id="how-to-implement">How to implement</h2>
6161
<h3>GCWeb (WET) theme implementation reference</h3>
6262
<ul>
6363
<li><a href="https://wet-boew.github.io/GCWeb/components/gc-toc/toc-en.html">In-page table of contents (GCWeb)</a></li>
6464
</ul>
6565
</section>
6666
<section>
67-
<h2>Latest changes</h2>
68-
<dl>
67+
<h2 id="latest-changes">Latest changes</h2>
68+
<dl class="dl-horizontal">
6969
<dt>2025-08-20</dt>
7070
<dd>Revised the visual examples and headings on the page to align more closely with our newer guidance pieces. Added links to the GCWeb implementation for easier reference.</dd>
7171
</dl>

0 commit comments

Comments
 (0)