Technical writing is easier to use when its structure and examples work for readers with different devices, abilities, and levels of context. Accessibility is not an after-the-fact audit; it affects how content is organized and how interactive examples are built.
Structure for navigation
Use one descriptive page title and a logical heading hierarchy. Headings should describe the section rather than serve as visual decoration. Write link text that makes sense outside the surrounding paragraph; “read the API migration guide” is more useful than “click here.” Provide text alternatives for diagrams that communicate architecture, and mark purely decorative images accordingly.
Code samples need a language label and should remain readable at zoom. Avoid conveying success or failure through color alone. If an example includes a live editor or runnable demo, provide keyboard controls, visible focus, status announcements, and a non-interactive explanation of the expected result.
Reduce avoidable cognitive load
Define acronyms on first use, show assumptions before a procedure, and separate required steps from optional variations. Use concise paragraphs and lists for actual sequences. Do not rely on screenshots as the only place where an instruction appears. Captions should explain why an image matters, not repeat its filename.
Review pages with keyboard navigation, screen-reader heading and link lists, browser zoom, and contrast tools. Ask readers to test content when possible, especially for complex diagrams or tools. Accessibility improves when a reader can find the relevant section, understand the example, and complete the same task without a mouse or perfect vision.
Test the content people actually read
WCAG 2.2 calls for a contrast ratio of at least 4.5:1 for normal text at the AA level, with a 3:1 threshold for large text as defined by the criterion. That applies to source links, muted captions, and syntax colors that communicate information too. Verify the rendered colors in both supported themes, including on a tinted callout or code background. W3C contrast guidance
Use headings for the structure and provide text alternatives that describe the purpose of meaningful images. Turn images off briefly and follow the explanation. Then use a keyboard to follow a heading link, scroll a wide snippet, reach the copy control and continue reading. At narrower widths, check that only a truly two-dimensional component requires horizontal scrolling. W3C Reflow guidance
Worked example
The alternative text communicates the diagram’s purpose. Verify the article remains understandable with images disabled and that headings and controls work with keyboard navigation.
html<figure> <img src="/images/request-flow.png" alt="A browser request passes through authentication before the article query."> <figcaption>Authenticated article request flow</figcaption> </figure>




Community
Discussion
Loading comments…