designwithfocus

On-page SEO

How to Check the Meta Title of a Website

By Design With Focus Team 6 min read
A browser tab title next to a title element in page source

Short answer

The title people mean is the text inside the HTML title element in the document head. MDN says that element sets the browser tab text. Google may show a different title link when it detects a problem. The meta description is a separate tag, a meta element named description, not the title.

Last verified against the sources listed below.

Key takeaways

  • The title element lives in the head and holds only text, which the browser shows in the tab.
  • View the page source and read the title element. That is the title in the HTML file.
  • Google may replace the title link using headings or other on-page text.
  • The meta description is a meta tag named description, not the title element.
  • WCAG 2.4.2 asks each page for a title that describes the topic or purpose.

How to check meta title of a website starts in the HTML, not in the search result. MDN says the title element defines the document’s title shown in a browser’s title bar or in the page’s tab. It only contains text. Tags typed inside it are treated as plain text.

The element belongs in the head. HTML is the document you are reading when you open the source. The title is one element in that head, not a line of body copy.

What is the title element?

The title element is the document’s name in the head. The HTML spec says it represents the document’s title or name. Authors should pick titles that still identify the document in history, bookmarks, or search results. The spec also says the document title is often different from the first heading, because a heading does not have to stand alone.

MDN says both the start tag and the end tag are required, and that the permitted parent is a head that does not already contain another title. The contents are text, not nested elements. The browser uses that text for the tab.

WCAG 2.4.2 is the accessibility rule behind a useful title. Level A says web pages have titles that describe topic or purpose. The understanding page says an HTML page marks that title up with the title element so a user agent can show it in the title bar.

How do you read it in the source?

You read the title by opening the HTML source and finding the element in the head. The steps below use the source the browser shows for the current URL. They do not use the bold heading in the page body.

  1. Open the page in the browser and use the command that shows the page source, often labeled View Page Source. You want the HTML document, not a rendered preview.
  2. Find the head element near the top of that document. MDN says the title element is always used inside the head.
  3. Find the title start tag and its end tag. Copy the text between them. That text is the document title in the file.
  4. If you also need the description, find a meta element whose name attribute is description. The content attribute is the summary. It is not the title.
  5. Compare the title text with the text in the browser tab. If they differ, a script may have changed document.title after the document loaded. The spec says the title string user agents use is that document.title value.

A word counter can count the words in the string you copied. MDN says search engines typically display about the first 55 to 60 characters of a title. That is MDN’s display note. It is not a limit printed in Google’s title-link guide.

How do you find the description too?

The description is a different element in the same head. MDN’s meta name page says the name attribute provides metadata in name-value pairs, and the content attribute holds the value.

The standard name description is a short and accurate summary of the page, usually called a meta description. MDN says search engines such as Google use this metadata to adjust how a page looks in search results. The title element is a separate source. Google’s title-link page is about the title of the result, not about replacing the description with the title.

To find both, search the source for <title and for name="description". Write the two strings down side by side. If the description attribute is missing, the page has a title and no meta description.

If the title element is missing, the description does not fill that gap. WCAG 2.4.2 is about the page title.

Why might Google show other text?

Google can change the title link. Google’s guide says generation of title links is automated. It uses the title element, the main visual title, headings, og:title meta tags, other prominent text, anchor text, and WebSite structured data.

The guide says that if a problem is detected, Google may generate an improved title link from anchors, on-page text, or other sources. Problems it lists include a half-empty title, an obsolete title, a title that does not match the page, boilerplate repeated across many pages, no clear main title, and a title whose language or writing system does not match the page.

Structured data is one of the sources in that list, not a replacement for the title element.

Google also says it has to recrawl the page before it notices a change, which may take a few days to a few weeks. Checking the source tells you what you published. Checking the result tells you what Google chose to show.

What goes wrong in the source?

Empty titles, script-only titles, and rewritten results are different failures. Use the source and the result together.

What you see What it usually means What to check
No title element, or a title with no text The head does not provide the tab text MDN describes Add a title element in the head with text that states the page topic
The tab text is not the text in the source document.title was updated after load, which the HTML spec allows Read the source for the original element and the live document for the script’s value
Google shows different words The title-link guide says Google may replace a title when it detects an issue Compare the title element with the main heading and other prominent text

Frequently asked questions

Is the meta description the same as the title?

No. The title element is text in the head, shown in the tab. A meta element with name description and a content attribute is the short summary called a meta description. MDN says search engines may use that summary when they adjust a result. Both tags can sit in the head. Reading one does not tell you the other. If you need both strings, copy both tags from the source.

Why does the Google result show different words?

Google builds title links from the page and from other references on the web. Sources include the title element, the visible title, headings, other prominent text, anchor text, and WebSite structured data. If it detects a problem, it may build a replacement. A half-empty title or a title in the wrong language are examples. A different result does not mean the element is missing.

What if the tab title is not in the source?

View source shows the HTML that was sent. The HTML spec says the title element represents the document title, and that the string in the interface is document.title, which script can change. MDN notes that a dynamic title change is not announced by a screen reader on its own. If a script sets the title after load, the tab can differ from the element in the source. Read both.

How long should the title element be?

MDN says search engines typically show about the first 55 to 60 characters, and that later text may be dropped. Google does not print that character count. It says a title element has no length limit, and that the title link is truncated to fit the device. Treat the 55 to 60 note as MDN's display guidance. Put the important words first so a short link still names the page.

Does a missing title fail an accessibility check?

Yes, against WCAG 2.4.2 Page Titled, which is Level A. Web pages need titles that describe topic or purpose. The understanding page says a user agent may show that title in the title bar or the tab, and that an HTML page marks it up with the title element. Its test rules include a non-empty title and a descriptive title. An empty title element misses that requirement.

Sources