How to Fix a Missing or Empty Page Title Element
This check fails when a page has no <title> element in its <head>, or has one that is empty or contains only whitespace. By the end of this guide, every page and template on your site will output a non-empty, descriptive title, and you will have confirmed the fix in the browser and with an accessibility scanner.

Why it matters
The page title is the first thing a screen reader announces when a page loads. It is also the label on browser tabs, bookmarks and history entries. 2 Page Titled (Level A), so blind and low-vision users cannot tell which page or tab they are on.
Search engines and AI assistants also use the title as the main label when they cite or list your page, so a blank one forces them to guess, often badly.
What you need
Step-by-step fix
Confirm what each flagged page actually outputs
Open a flagged URL, open DevTools (F12), and run the snippet below in the Console. It shows the title the browser actually ends up with after scripts run, how many <title> elements exist, and where they sit. Possible results:
- An empty string means the title is missing or blank.
- A count of 0 means there is no <title> element at all.
- A parent of BODY means the title is in the wrong place.
console.log(JSON.stringify(document.title), document.querySelectorAll('title').length, [...document.querySelectorAll('title')].map(t => t.parentElement.tagName));Add a single <title> inside <head>
Put exactly one <title> element inside <head>, ideally right after the charset and viewport meta tags. It must contain real text, not just spaces or an HTML comment. A <title> inside an inline SVG or inside <body> does not count as the page title.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Pricing Plans | Example Co</title> </head>
Write a descriptive, unique title for each page
Use this pattern: specific page topic, then a separator, then the brand. Put the distinctive words first, because screen readers and tabs show the start of the title. Keep titles to about 50-60 characters so search results don't cut them off.
Avoid generic titles such as "Home", "Untitled" or "Page".
- Product: "Blue Canvas Tote Bag | Example Co"
- Blog post: "How to Clean Canvas Bags | Example Co Blog"
- Search results: "Search results for 'tote' | Example Co"
Fix the template, not just individual pages
Most missing titles come from one shared header file or layout that hardcodes an empty <title>, or uses a variable that is blank on some page types. Find the layout file that outputs <head>, then add a fallback so the title is never empty, even when an editor leaves the field blank.
<?php $page_title = trim($page_title ?? ''); ?> <title><?php echo htmlspecialchars($page_title !== '' ? $page_title . ' | Example Co' : 'Example Co'); ?></title>
Set the title on route changes in single-page apps
In React, Vue or Angular apps, the server often sends one empty <title> shell, and the route never updates it. Set a meaningful title every time the view changes. In React 19 you can render <title> inside a component and React moves it into <head>.
title in an effect.
import { useEffect } from 'react';
export function usePageTitle(title) {
useEffect(() => {
document.title = title ? `${title} | Example Co` : 'Example Co';
}, [title]);
}
// In a page component:
// usePageTitle('Pricing Plans');Re-test the flagged pages
Clear any page cache or CDN cache, then reload each flagged URL. Run the Console snippet from step 1 again: it should print a non-empty string and a count of 1. Then run an axe DevTools or Lighthouse accessibility scan, and re-run your site audit to confirm the check passes across all page types.
Platform-specific notes
WordPress
Block themes and most classic themes generate the title automatically. If yours does not, add add_theme_support('title-tag'); inside an after_setup_theme hook in functions.php, and remove any hardcoded <title> from header.php. In Yoast or Rank Math, set per-page titles in the plugin's SEO panel below the editor, and set defaults under Yoast SEO > Settings > Content types (or Rank Math > Titles & Meta).
Shopify
Go to Online Store > Themes > ... > Edit code > layout/theme.liquid and make sure <head> contains <title>{{ page_title }}{% unless page_title contains shop.name %} | {{ shop.name }}{% endunless %}</title>. Set custom titles per product, collection or page under the item's "Search engine listing" section > Edit. Check any alternate layouts in /layout as well.
Wix
Wix always outputs a title. Set it per page in the Editor via Pages & Menu > the ... next to a page > SEO basics > "Title tag". Set patterns for dynamic pages, products and blog posts under Dashboard > Marketing & SEO > SEO > SEO Settings.
Webflow
Open the Pages panel, click the gear icon next to a page, and fill in SEO Settings > Title Tag. For CMS Collection template pages, insert collection fields (for example the Name field + " | Example Co") so items with an empty SEO field still get a title. Publish the site after making changes.
Next.js (App Router)
In app/layout.tsx export metadata = { title: { default: 'Example Co', template: '%s | Example Co' } }. Each page.tsx then exports metadata = { title: 'Pricing Plans' }, or uses generateMetadata() for dynamic routes. Do not also add a manual <title> in a custom <head>, because that creates duplicates.
Check that it worked
✅ How to verify
- In the DevTools Console, document.title returns a non-empty string and document.querySelectorAll('head title').length returns 1.
- View Source (Ctrl+U) shows a filled <title> inside <head> in the raw HTML.
- The axe DevTools scan reports no "Documents must have <title> element to aid in navigation" issue, and Lighthouse's Accessibility section lists "Document has a <title> element" as passed.
- With a screen reader turned on (NVDA, VoiceOver or Narrator), loading the page announces the new title.
⚠️ Common mistakes
- Leaving whitespace or a template variable that renders as nothing, such as <title>{{ seo_title }}</title> when seo_title is blank. This still fails the check.
- Placing the <title> in <body> or relying on an SVG <title> or an <h1>. Neither counts as the document title.
- Giving every page the same title, such as "Example Co". This passes the automated check but fails users who need to tell tabs and search results apart.
- Outputting two <title> tags because both the theme and an SEO plugin add one. Browsers use the first one, which may be the empty one.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
Is the <title> tag the same as the H1 heading?
No. The <title> lives in <head> and names the document for tabs, screen readers and search results. The H1 is the visible main heading on the page. They often share wording, but you need both.
Does a missing title tag hurt SEO?
Yes. Without a title, Google generates its own title link from headings or anchor text, and that is often less relevant. A clear title also helps search engines and AI tools understand and cite the page.
Will setting the title with JavaScript pass the accessibility check?
Usually, yes, because accessibility scanners and browsers read the rendered page. However, crawlers and link previews that don't run JavaScript will see the empty server-side title, so outputting the title in the server HTML is safer.
Which WCAG criterion covers page titles?
WCAG 2.4.2 Page Titled, Level A. It requires every web page to have a title that describes its topic or purpose. It applies under WCAG 2.0, 2.1 and 2.2.
How to Fix Heading Order: One H1 and No Skipped Levels
How to Fix a Missing or Invalid Page Language (html lang)
How to Fix a Missing Main Landmark and Unwrapped Content
How to Fix Links Without Discernible Text on Your Site
How to Add a Skip to Content Link for Keyboard Users
How to Fix Buttons Without Accessible Names on Your Site