Transcript
Under a heading like Configuration, a reader learns only the topic, but Configure the client with an API key says what they'll do. So the rule for documentation headings is that a heading tells a scanning reader what its section contains. For a procedure, I'd name the task or its result, like Create the project and install the CLI. But that doesn't mean a verb in every heading, because a concept or reference section gets a descriptive noun phrase, like Webhook signature headers. So before you publish, read the headings without the body copy, and check that each one says why its section exists.
Stripe's webhook guide has nine second-level headings. Of those, six name an action, such as "Create a handler", and the rest name a subject, such as "Event delivery behaviors".
That split is the rule for documentation headings: an action heading where the reader acts, and a subject heading where the reader looks something up. A heading should tell a scanning reader what the section contains.
Headings are how a reader moves through any page of technical documentation, so the rule covers every type of page.
- For a procedure, name the result or task.
- For a concept, name the concept.
- For a failure, name the condition and the recovery path.
A task-based heading belongs on a section that holds a task, and the rule stops there. It doesn't ask for a verb in every heading.
Match the heading to the section's job
A heading is a navigation label and a link target, and it promises what the content below it will be. Google's documentation style guide gives the instruction as "Write section headings based on the type of content that's in the section."
Start by deciding what the section does. A procedure helps a reader reach a result, while an explanation answers a conceptual question.
A reference section identifies a field, object, or API behavior. A recovery section handles a known failure condition.
| Section job | Generic label | Illustrative rewrite |
|---|---|---|
| Procedure | Setup | Create the project and install the CLI |
| Configuration | Configuration | Configure the client with an API key |
| Verification | Testing | Verify the endpoint accepts a signed test event |
| Recovery | Errors | Recover when signature verification fails |
| Explanation | Authentication | Token scopes and integration access |
| Reference | Options | Retry policy options for background jobs |
Each rewrite names the reader's task or the section's subject, where the generic label names only a broad topic. Treat the rewrites as examples, since the wording depends on the product.
Write task headings for procedural sections
Use a task heading when the section tells the reader how to change a system or reach a checked result. Google's guide gives the form: "For a task-based heading, start with a bare infinitive", the plain verb with no "to" or "-ing".
For example, Configure the client with an API key tells the reader what they will do and what it applies to. Configuration tells them only that the topic is configuration.
Add a detail when two tasks would otherwise share a heading. Say the macOS and Windows installs differ: Install the CLI on Windows then needs its last two words.
Diátaxis says "How-to guides are goal-oriented." That is a useful check for a heading: prefer the reader's goal over the name of the setting.
For example, Delay retries after a rate-limit response explains the intended behavior. Set the retry_after field can be correct, but it makes the reader inspect the section before learning why that setting matters.
Does a task heading beat a noun heading every time?
No. A verb helps when the reader is meant to act, and a section that explains a concept or documents one item needs a descriptive noun phrase.
Dedox, which sells help-centre software, gave the opposite advice in a promotional post on November 1: "How to change your plan" beats "Plan management" every time.
The example is right, because a help-centre article about changing a plan is a task.
The words "every time" are where I disagree. The same post grounds the tip in search, saying task titles "match what people actually type into search", and people also type the names of things.
Claude Code's hooks reference shows the case for noun headings. Its sections are named for what a developer looks up, such as "Hook input and output" and "Matcher patterns", and each hook event is a heading that is only the event's name, PreToolUse among them.
A developer arriving there has the name already and wants its fields. Webhook signature headers works for the same reason, and Details fails because it forces the reader to open the section to learn what the details are about.
A practical test covers both kinds. If someone can predict the section's subject from the heading alone, the heading works, and if the best they can say is "information about this topic", it needs another pass.
Keep heading hierarchy separate from heading wording
A precise heading can still be placed at the wrong level. The World Wide Web Consortium's headings tutorial says "Headings communicate the organization of the content on the page", and that browsers and assistive technologies use them for in-page navigation.
Use one page title for the page's primary job. Use major section headings for the main tasks or concepts, then nest headings only for work that belongs within a parent section.
Choose a heading level by where the section sits in the outline. CSS can change how a heading looks, and its level still sets the document outline that navigation tools read.
Review the outline before the prose
Read the headings without the body copy. The review asks a narrower question than an editorial review: does the outline show the tasks and recovery paths that the page promises to cover?
Where a site publishes its pages as Markdown, one command pulls the second-level outline. The language header is there because Stripe serves "behaviours" or "behaviors" depending on where the request comes from.
curl -sL -H 'Accept-Language: en-US' https://docs.stripe.com/webhooks.md | grep '^## '
## Set up your endpoint
## Create a handler
## Test your handler
## Optional: Create an event destination for Connect
## Optional: Create an event destination for Organizations
## Debug webhook integrations
## Event delivery behaviors
## Best practices for using webhooks
## See also
The outline reads as the job in order: set up, create, test, debug. The reference material sits under "Event delivery behaviors", and its own subheadings are noun phrases such as "Automatic retries" and "Event ordering".
Compare that with labels such as Setup, Testing, and Errors. Those labels can work on a settings screen, where the page title supplies the subject, and on a docs page they describe neither a task nor a subject.
Rewrite headings where the reader needs to choose a next step
Start with the headings that carry the heaviest navigation work, which are the first action and the recovery path. The verification step comes next, since it tells the reader whether to go on.
Leave the rest in the form that fits them. A section that explains token scopes should say so, and a section that documents a request field should name that field.
For a full tutorial structure, see the guide to writing technical tutorials. Before publishing, use the documentation review checklist to check the rendered outline, links, and navigation.
The standard to hold a page to is that a reader can tell why a section exists before reading it. Stripe's outline passes with verbs where the reader acts and nouns where the reader looks something up.