Documentation Style Guide: Voice, Accessibility, Grammar, and API Format
How to write clear technical documentation: voice and tone, WCAG practices, abbreviations, headings, procedures, and API or cURL formatting.
This page summarises Cloudflare’s Style Guide for anyone writing or reviewing product and API documentation. The guide is meant to keep docs readable, consistent, translatable, and aligned with Web Content Accessibility Guidelines (WCAG) 2.1 Level AA where it applies to documentation.
Voice and tone: how technical docs should sound
Section titled “Voice and tone: how technical docs should sound”Cloudflare’s voice and tone guidelines aim for plain language that a global audience can understand and act on the first time they read it.
Plain language is writing that an audience can understand and act upon the first time they read it. Using plain language ensures your audience understands what you mean. Cloudflare users are a global audience whose first language might not be English. Plain language makes translation easier and documentation more accessible.
— Cloudflare, Voice and tone
Put the customer’s goal first, then the action. Prefer active voice and present tense, short sentences (often 8–12 words), and familiar words instead of jargon. Replace opaque phrases when you can—for example, “Submit a GET request” instead of “Do a GET.” For internationalization, avoid contractions such as don't and won't; they are hard to translate.
Refer to the reader as you, not “the user,” when the audience is using the product. Represent the company as Cloudflare rather than overusing “we.” Avoid anthropomorphisms: systems do not think, want, or worry.
Inclusive and neutral wording
Section titled “Inclusive and neutral wording”Inclusive writing avoids racist, gendered, and ableist terms. Cloudflare replaces some industry metaphors with neutral descriptions—for example, describing an on-path attack instead of gendered legacy terms, and block instead of loaded “list” metaphors when describing security outcomes. See Write inclusive documentation in the voice and tone guide.
Accessibility: page titles, headings, links, and clarity
Section titled “Accessibility: page titles, headings, links, and clarity”Accessibility guidelines require documentation that disabled users can access and use. Cloudflare aligns doc practices with WCAG 2.1 Level AA for documentation-relevant success criteria.
Create documentation that is accessible to all users, including disabled users. Following accessibility best practices ensures that everyone can access, understand, and use the Cloudflare docs effectively.
— Cloudflare, Accessibility guidelines
Page titles and heading structure
Section titled “Page titles and heading structure”Each page needs a descriptive, unique title with the most specific information first—avoid bare titles like “Overview” without context. Use headings in sequential order (H2 then H3); do not skip levels or use headings only for styling. One H1 per page is the page title; on Cloudflare’s docs site, the framework supplies that heading from the title, so body content typically starts at H2. Heading text should describe what follows (for example, “Configure DNS records”), not vague labels like “Important.”
Links, directions, and instructions
Section titled “Links, directions, and instructions”Link text must say where the link goes—avoid “click here,” “read more,” or “this page.” Prefer select over click when describing controls, for cross-device accessibility. Do not orient readers with above, below, left, or right; name the section or UI element instead.
Instructions should state requirements clearly (formats, limits, examples) and give specific error guidance. Define acronyms on first use in accessibility-focused flows; that overlaps with abbreviation rules below.
Readable structure
Section titled “Readable structure”Use lists for multiple related items: numbered lists for sequences, bullets for unordered sets. Keep paragraphs short (about three to four sentences). Aim for simple sentences and active voice, as in Keep content clear and concise.
Abbreviations and acronyms: when to spell out terms
Section titled “Abbreviations and acronyms: when to spell out terms”Cloudflare treats abbreviations broadly: acronyms, initialisms, shortened words, and contractions. Short forms like app or demo are not abbreviations if you say them as words—no period after them.
First mention and audience
Section titled “First mention and audience”When a term may be unfamiliar, spell it out on first use, then put the short form in parentheses; use only the short form afterward. If the first mention is in a heading, you may use the abbreviation in the heading and spell it out in the first paragraph below.
If most readers already know the term (for example API in developer docs), spelling out is optional. Do not spell out when it does not help—PDF is an example. Terms that rarely need spelling out include API, HTML, URL, REST, RAM, units like MB/GB, and common file types.
Acronyms should not use periods between letters (for example TLS, VPN). For new or unclear terms, link to an existing explanation or define them in place.
Words to avoid
Section titled “Words to avoid”Prefer that is and for example over Latin i.e. and e.g. Do not use internet slang (tl;dr, FYI, etc.). Prefer full words when they are common (approximately not approx.). Periods: none on acronyms; a period on shortened words except date/time forms; no period on country or US state abbreviations in names.
Capitalization, product names, and UI wording
Section titled “Capitalization, product names, and UI wording”Capitalize Cloudflare product and feature names so generic industry terms (load balancing, bot management) are not confused with named products (Cloudflare Load Balancing, Cloudflare Bot Management). Follow established forms: DDoS, SSL, TLS, WAF, Internet, Zero Trust.
Headings use sentence case (only the first word capitalized, plus normal proper nouns). UI elements are described by name: select buttons, turn on/off toggles, go to menus. Use nested paths like Dashboard > This > That with bold on words, not on >. Do not copy button icons or ellipses from labels unless the control is only a symbol.
Procedures and lists: steps readers can follow
Section titled “Procedures and lists: steps readers can follow”Steps, tasks, and procedures use numbered steps for processes—not bullet lists. One action per step when possible; combine only small actions. Write imperative second-person steps in execution order; state where before what. Use log in to (three words), not log into. Say turn feature on/off rather than enable/disable when describing toggles. Do not use “please.” Avoid directional language; restate location in the first step when a new procedure starts under the same area.
For bullets, follow the lists guidance: use bullets for facts and options, not workflows; keep items parallel; punctuate consistently (periods only if each item is a full sentence).
Code blocks, placeholders, and monospace
Section titled “Code blocks, placeholders, and monospace”Code block guidelines require fenced blocks with a lowercase language tag (javascript, not JavaScript; txt when no language fits). Use sh or bash for terminal commands on Linux/macOS, powershell for Windows PowerShell.
Do not include a prefix ($, %, PS>, C:>, or similar) before a command so that the user can run the command immediately after copying and pasting without having to remove the prefix.
— Cloudflare, Code block guidelines
Code conventions use angle brackets for user placeholders in examples (<RULE_DESCRIPTION>), except API URL paths may use schema braces like {account_id} while cURL examples use shell variables such as $ZONE_ID. In prose, use backticks for paths, headers, verbs, filenames, and keyboard shortcuts like `CTRL + C` (entire shortcut in one monospace span). When authoring documentation pages for the docs site, escape literal {, }, and < outside code fences with backticks, as described in Code conventions.
Specify language on code examples for screen reader users; add brief context before samples, per Make code examples accessible.
API documentation and cURL examples
Section titled “API documentation and cURL examples”API content strategy targets straightforward, navigable reference material. Each endpoint documents title (sentence case, no trailing punctuation), description, plan availability, HTTP method, and path as code. Parameters include name, type, description, and required status.
For hand-written HTTP examples, use Guidelines for cURL commands or the APIRequest / CURL doc components described on APIRequest usage and CURL usage.
| Topic | Convention |
|---|---|
| Flags | Prefer --header, --data, --request when needed |
| GET | Omit --request GET (default) |
| POST with JSON body | Omit --request POST; add Content-Type: application/json |
| POST without body | Include --request POST explicitly |
| JSON in shell | Wrap --data in single quotes; 2-space indent in body |
| Placeholders | $ZONE_ID in URLs; <RULE_ID> in JSON bodies |
| Query strings | Quote the full URL when it contains ? |
| Responses | Full JSON response in a json block when documenting APIs |
| jq | Do not embed jq in cURL examples |
Do not use typographic “smart” quotes inside commands. On Windows Command Prompt, use double quotes and its escaping rules, as described on Make API calls.
Examples are single copy-paste snippets with short context—not multi-step tutorials.
Grammar and formatting essentials
Section titled “Grammar and formatting essentials”These rules appear throughout style and grammar:
- Oxford comma in lists of three or more items.
- Hyphens for compound modifiers before the noun; em dashes with spaces for asides—never use a hyphen as a dash.
- No periods in titles or headings; periods end body sentences.
- Numbers and units: space between number and unit (
128 GB,10 m). - File types vs extensions: uppercase type names without a dot (
JSON); monospace extensions with a dot and a noun (the .jsonfile). - RFC references as
RFC 6844(space after RFC). - URLs: omit
http://andwwwfor Cloudflare addresses in prose. - Standard quotation marks, not curly typographer quotes, per quotation marks.
Doc filenames for new content should be lowercase with dashes, as in file conventions.
Common mistakes when applying the style guide
Section titled “Common mistakes when applying the style guide”- Generic link text (“click here”) and layout-only headings.
- Skipped heading levels or multiple ideas in one section.
- Bullet lists for sequential setup tasks instead of numbered steps.
- Command prompts (
$,%) in copy-paste terminal blocks. - Mixed placeholder styles (
{zone_id}in cURL vs$ZONE_IDwithout reason). - Lowercasing product names or spelling
internetwhen Internet is intended. - Unexpanded acronyms on pages for newcomers, or over-expanding
API/URLon every developer page. - Contractions and exclamation points in reference docs (exclamation points belong mainly in UI success messages).
- Ampersands in prose instead of and, except tight UI or proper names.
For semantic HTML patterns in examples (figures, captions, accessible code), see HTML code examples from Chrome’s modern web guidance—useful when docs embed rich figures and labelled code blocks.
How to check this on your site
Section titled “How to check this on your site”-
Compare a draft page against the relevant sections of the Style Guide (voice, accessibility, formatting).
-
Read headings alone as an outline: unique title, no skipped levels, no vague section names.
-
Click every link in review: confirm descriptive anchor text and that instructions never rely on “above/below” wording.
-
Run cURL samples in a clean shell copy-paste (no prompt prefix) and validate JSON blocks match Guidelines for cURL commands.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will follow up.