Content style guide
Page titles and section titles
Page titles
Page titles have 2 important functions:
- To clearly and quickly tell people the main purpose of the page—what they can do or what information they can get on that page
- To optimize the page for search, so people can easily find the information through search engines and artificial intelligence (AI) platforms
Read more about writing for SEO
Length and punctuation
- Try to keep page titles to 52 characters (with spaces) maximum. Use the primary SEO keyword in the page title. On VA.gov, page titles use the H1 tag.
- Page titles don’t get ending punctuation (like a period or a colon). But titles can have a question mark, if appropriate.
Exceptions
- Articles in resources and support have a page title character limit of 70 (with spaces)
- News releases, blog titles, community stories, and local event titles don’t have a page title character limit
Section titles
Section and subsection titles (also sometimes called headers and subheads) help organize the page into scannable chunks of information. The titles should provide clear guideposts and bring people deeper into the content.
- Structure section titles with H2s, subsections with H3s, and so on. This structure provides a natural hierarchy for your content and helps SEO.
Read more about using header levels to structure sections on W3.org - Make each section title unique. Each title should be different enough so people can quickly and easily tell the difference between the sections. This is particularly important for pages that include an On This Page component (table of contents).
- In sections that list several ways someone can contact us or apply for a benefit, use “Option [X]:” in the header. For example, under an H2 that says “How to apply” we might have these H3s: “Option 1: Online” and “Option 2: By mail.”
Length and punctuation
- Try to keep section and subsection titles to 70 characters (with spaces) maximum. Include only details or nuances that are critical to differentiating between sections and subsections. Address other details with more depth in the paragraph copy.
- Section titles don’t get ending punctuation (like a period or a colon). But titles can have a question mark, if appropriate.
Like this
H1 page title How to apply for college
- H2 Documents you need before you start your college application
- H2 Ways to apply to colleges
- H3 Option 1: Online
- H3 Option 2: By mail
- H2 What happens after you apply
- H3 How long it takes to get a response from colleges
- H2 More information about applying for college
Title tags
Title tags use the H1 as part of the tag. The Title tags section has specific information on what to use for the title tag and how to format it, depending on the context.
Learn more in the Title tags section
Privacy guidance
Page titles (H1s) can include personally identifiable information (PII) or protected health information (PHI). But we can’t populate or track this information anywhere else.
What to do if an H1 includes PII or PHI:
- Ensure no part of the URL (including parameters and anchor tags) include information that someone could use, either by itself or in combination with other information, to figure out an individual’s identity or health information.
- Make the corresponding breadcrumb segment generic. This ensures the information isn’t tracked back in analytics or other logs through the link text for that breadcrumb segment.
- Make the title tag generic. This ensures the information isn’t tracked back in analytics or other logs through the page title.
Learn more on the Title tag page
Note: This does create an a11y infraction where there isn’t a unique title tag for each page, but there isn’t other meaningful data that can be exposed in the title tag to differentiate it. The VA 508 office approved this approach in these use cases.