punct-001 should GuidesAPI docsMarketingBlog Use the Oxford (serial) comma before the final conjunction in a list of three or more items.
This page contains rules about how to use punctuation in developer documentation, and especially the types of punctuation to avoid. Specialized punctuation is often a problem on screens, in screen readers, and in translation. To address this issue, these rules often recommend direct plain language to replace punctuation that is convenient for the writer but unnecessary for the reader.
The punctuation section of this guide also includes the following pages:
punct-001 should GuidesAPI docsMarketingBlog Use the Oxford (serial) comma before the final conjunction in a list of three or more items.
Examples
Rationale
An Oxford comma separates the last two items in a list, so readers don’t mistake them for a single combined item.
punct-018 should GuidesAPI docsMarketingBlog Use one space, not two, after a period.
Examples
Rationale
Adding two spaces after the ending punctuation of a sentence is a typewriter convention. Rendered text collapses them, and in formats that preserve whitespace they leave an uneven gap.
punct-014 should GuidesAPI docsMarketingBlog Use semicolons sparingly. Prefer shorter sentences or lists, but permit semicolons between closely related independent clauses and in complex series with internal punctuation.
Examples
Rationale
A sentence with several semicolon-linked clauses can be difficult to scan. Separate sentences or a list make each point easier to identify.
punct-011 should GuidesAPI docsMarketingBlog Avoid ellipses in technical documentation. Use them only in quoted text to indicate omitted material, and don’t use them at the beginning or end of a quotation.
Examples
Rationale
Outside a quotation, an ellipsis can suggest omitted steps, an incomplete list, hesitation, or an unfinished thought. When a list is intentionally partial, introduce it with such as (list-010) instead.
punct-012 should GuidesAPI docsMarketingBlog When an ellipsis appears in UI, don’t reproduce it in instructions describing that UI element.
Examples
Rationale
An ellipsis in a UI label signals that another step or dialog follows. It describes the control’s behavior rather than naming the control, so an instruction can omit it.
punct-013 should GuidesAPI docsMarketingBlog In quoted material, insert one space before and after an ellipsis that replaces text within a sentence.
Examples
Rationale
Spaces separate an ellipsis from the words that remain in a quotation. Without the spaces, the ellipsis can look like part of either word.
punct-015 should GuidesAPI docsMarketingBlog In body text, don’t use a slash to replace or. Write or, or and when that is the meaning.
Examples
Rationale
A slash between words can mean and, or, or a ratio. Writing the intended conjunction removes the ambiguity.
punct-016 should GuidesAPI docsMarketingBlog Don’t use slashes in dates. Use an unambiguous date format instead.
Examples
Rationale
The order of the month and day in a slash date differs by region. Spelling out the month or using an ISO 8601 date makes the order explicit. For more information about date formats, see date and time.
punct-025 should GuidesAPI docsMarketingBlog Don’t use abbreviations that rely on slashes, such as c/o and w/. Spell the words out.
Examples
Rationale
Slash abbreviations such as w/ are informal and can be unfamiliar to readers. The full words are easier to recognize and translate.
punct-017 should GuidesAPI docsMarketingBlog Use exclamation points sparingly. Avoid them in concept and reference documentation. They are acceptable in tutorials to mark major milestones and in code when required by syntax.
Examples
Rationale
An exclamation point adds excitement or urgency that concept and reference documentation rarely need. Reserving it for tutorial milestones keeps the emphasis noticeable.
punct-026 should GuidesAPI docsMarketingBlog Avoid placing important information in parentheses. Consider whether the parentheses are necessary and whether commas or separate sentences serve better. For examples, prefer such as or for example in the sentence over a parenthetical list.
Examples
Rationale
Parentheses signal that the enclosed content is incidental. A reader who scans past a parenthetical can miss an important condition or explanation.
punct-019 should GuidesAPI docsMarketingBlog Format punctuation in the same font style as the surrounding body text, not the style of the element it follows. Punctuation that is part of the element keeps the element’s style. This exception applies when the user must type the punctuation or when a code element ends with it. The rule doesn’t cover the label of a callout, such as a note or a warning, whose form depends on the documentation platform.
Examples
timeout, then restart the service.timeout, then restart the service.;, as in count = 0;.Rationale
When sentence punctuation uses the same style as adjacent code or a UI label, readers can mistake it for part of the element. Matching the body-text style separates the punctuation from the element. A character that the reader types, such as a statement terminator or the colon in a key, remains in code font. The documentation platform can render a callout as a bold label with a colon, an icon, or a titled box, so the label’s form isn’t a punctuation decision.
list-004 should list-012 should punct-009 (retired 2026-09-18): “The text before a colon that introduces
a list must be a grammatically complete sentence.” The guide accepts a
clause before a list colon (list-004); what the clause
needs is context, not a finite verb, and list-012 states
it. Its example, “The CLI supports:”, is list-012’s ✗.
punct-002 (retired 2026-08-19): “Use em dashes without spaces on either
side to set off parenthetical phrases or interruptions.” Superseded by
punct-028, which says not to use em dashes at all.
punct-003 (retired 2026-08-19): “Do not use a hyphen or double hyphen in
place of an em dash.” Superseded by punct-028: nothing is written in place
of an em dash; the sentence is rewritten with commas, parentheses, a
colon, or a period.