|
| 1 | +.. _toc-labels: |
| 2 | + |
| 3 | +======================== |
| 4 | +Table of Contents Labels |
| 5 | +======================== |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +Table of Contents (TOC) labels refer to the headings or titles used to |
| 14 | +represent the various sections or pages of our documentation in the |
| 15 | +TOC. The TOC provides an organized list of the documentation's |
| 16 | +structure and content. |
| 17 | + |
| 18 | +Each entry in the TOC typically includes a label or heading that |
| 19 | +corresponds to a section or page in the documentation. These labels |
| 20 | +give users a quick overview of the topics covered and help them |
| 21 | +navigate to specific parts of the documentation more efficiently. |
| 22 | + |
| 23 | +When you create a TOC, you can generate these labels automatically |
| 24 | +based on the titles of your pages, or specify labels that differ from |
| 25 | +the page title. |
| 26 | + |
| 27 | +Page titles and Table of Contents (TOC) labels serve distinct purposes. |
| 28 | +We should craft them with different considerations. |
| 29 | + |
| 30 | +TOC labels and page titles can match. However, we should define them |
| 31 | +separately even when they match for added flexibility. This approach |
| 32 | +ensures that we can easily implement any future changes without |
| 33 | +affecting the other element. Separate definitions for TOC labels and |
| 34 | +page titles contribute to organized content management and a seamless |
| 35 | +user experience. |
| 36 | + |
| 37 | +While both page titles and TOC labels contribute to the overall user |
| 38 | +experience, page titles focus more on attracting users and SEO, while |
| 39 | +TOC labels prioritize representing the document's structure and aiding |
| 40 | +in navigation within the document itself. |
| 41 | + |
| 42 | +Page Titles |
| 43 | +----------- |
| 44 | + |
| 45 | +- Optimize page titles for search engines. They should include relevant |
| 46 | + keywords to improve the page's discoverability in search results. To |
| 47 | + learn more, see :ref:`seo-guidelines`. |
| 48 | + |
| 49 | +- Create succinct, meaningful, descriptive page titles, and place the |
| 50 | + most important words first. Page titles should have a maximum of 70 |
| 51 | + characters and provide a quick overview of the content. Search |
| 52 | + results or browser tabs might truncate extra long titles. Avoid |
| 53 | + excessive or irrelevant words (keyword stuffing). |
| 54 | + |
| 55 | +- While we should craft concise titles, include enough information to |
| 56 | + confirm to the user that they have landed in the right place. A page |
| 57 | + title can provide more detail than a TOC label. |
| 58 | + |
| 59 | +- Ensure that each title and heading is unique. Identical titles, even |
| 60 | + between documentation sets, might compete in search results. |
| 61 | + |
| 62 | +- Don't include "MongoDB" in a title unless the page is a product |
| 63 | + landing page. |
| 64 | + |
| 65 | +- Aim to attract users and encourage them to click on the link. Include |
| 66 | + phrases users might search for, or tasks they might want to |
| 67 | + accomplish. |
| 68 | + |
| 69 | +- Create page titles that are readable and effective on various |
| 70 | + devices, including mobile. This involves considering character limits |
| 71 | + and readability on smaller screens. |
| 72 | + |
| 73 | +- Use a consistent grammatical structure, style, and tone across all |
| 74 | + page titles to maintain a unified and professional appearance. For |
| 75 | + example, use verbs to indicate procedural content. |
| 76 | + |
| 77 | + |
| 78 | +To learn more, see :ref:`titles-and-headings`. |
| 79 | + |
| 80 | +TOC Labels |
| 81 | +---------- |
| 82 | + |
| 83 | +- While the automatic labels make it easier for writers to |
| 84 | + update the TOC as the content evolves, long titles interfere with |
| 85 | + efficient navigation. We recommend that you specify TOC labels to |
| 86 | + enhance the document's accessibility and usability. |
| 87 | + |
| 88 | +- Craft clear and descriptive TOC labels that convey the content of |
| 89 | + each section or page accurately. Users should understand the context |
| 90 | + from the TOC label and its placement in the overall TOC hierarchy. |
| 91 | + |
| 92 | +- Ensure your TOC label fits on a single line of text. Let the |
| 93 | + placement of the TOC label in the overall TOC hierarchy provide |
| 94 | + context. Avoid redundancy and repetition. The page title itself can |
| 95 | + provide more detail and confirm to the user that they have landed in |
| 96 | + the right place. To this end, you can use industry standard |
| 97 | + abbreviations and the ampersand when needed. |
| 98 | + |
| 99 | + .. important:: |
| 100 | + |
| 101 | + In favor of brevity, TOC labels do allow for the the ampersand ( & ) symbol. |
| 102 | + |
| 103 | +- Don't stray so far from the original page title that you disorient |
| 104 | + the user. |
| 105 | + |
| 106 | +- TOC labels should follow a logical order that reflects the |
| 107 | + documentation's flow. You might include numbering or an order that |
| 108 | + makes sense for the documentation's purpose. |
| 109 | + |
| 110 | +- TOC labels primarily aid user navigation. Users should be able to |
| 111 | + quickly locate and go to specific sections of interest. |
| 112 | + |
| 113 | +- In technical documentation, TOC labels may use specialized technical |
| 114 | + terminology and acronyms to accurately represent the content within |
| 115 | + each section or page. |
0 commit comments