Title tag

HTML title element

A title tag is the HTML element that holds a page's title, which search engines often show as the blue headline of a result.

Checked 27/11/2026 against 3 sources. Next review 27/05/2027.

The title tag is the <title> element in the head of a page. It sets the document's title, which a browser shows in its title bar or tab [2]. In Google Search the headline of a result is called a title link, and Google builds it automatically from several sources, the title tag being one [1]. Google says the title link is often the main thing people use to pick a result, so each page needs its own [1]. A close sibling is the meta description, which feeds the text beneath it.

What does a title tag look like in the HTML?

<head>
  <title>Hokkien Mee Delivery in Geylang - Ah Seng Kitchen</title>
</head>

The example puts the specific page first and the business name last, separated by a hyphen. Google suggests adding just your site name at the start or end, split from the rest by a hyphen, colon or pipe [1]. Putting the full brand tagline on every page reads as repetitive when several of your pages come up for one search [1].

What makes a good title for Google?

  • Give every page a title in the title element [1].
  • Be descriptive and concise. Avoid vague words like "Home" or "Profile" [1].
  • Skip keyword stuffing. A few descriptive terms help, but repeating the same words makes a result look spammy [1].
  • Make each title different. Titling every page "Cheap products for sale" leaves people unable to tell two pages apart [1].
  • Write in the same language and script as the page. If they do not match, Google may pick different text [1].

MDN, the web standards reference, gives similar advice: make titles as unique as possible within your own site, because duplicate or near-duplicate titles can contribute to inaccurate search results [2].

Why does Google show a different title from the one I wrote?

Google's title links are completely automated, and they take into account both your page and references to it on the web [1]. The sources include the title element, the main visual title, heading elements such as the H1, og:title meta tags, anchor text on and pointing to the page, and WebSite structured data [1].

If Google detects an issue, it may build a better title link from anchors or on-page text [1]. Its own examples of issues:

Problem in your titleWhat Google may do
Half empty, such as "| Site Name"Use the large heading on the page instead [1]
Out of date, such as last year in the title but this year in the visible headingUse the date shown on the page [1]
Does not reflect what the page is aboutMay rewrite it to match the content [1]

Google has to recrawl a page to notice edits, which may take a few days to a few weeks [1]. You can ask for a recrawl in Google Search Console.

Does robots.txt affect my title tag?

Yes, indirectly. If robots.txt stops Google reading a page but it learns the URL from another site's link, Google may still index it. With no access to your content, it relies on off-page content for the title link, such as anchor text from other sites [1]. To keep a URL out of results use noindex.

Questions people ask

Is the title tag the same as the H1?

No. The title tag sits in the head and shows in the browser tab and search result. The H1 is a heading on the page. Google reads both when it builds the title link [1].

How long should a title tag be?

Google says there is no limit on how long a title element can be, but the title link is truncated as needed, typically to fit the device width [1]. If you use a long title, put the important parts early [2].

Does my CMS write the title tag for me?

Usually. Google notes that most content management systems turn the titles you write into a title element automatically [3]. Check the page source to confirm on your CMS.

Blog posts that use this term

See also

  • Meta description A meta description is a short summary of a page, written in a meta tag in the HTML, that search engines may show under the result title.
  • SEO SEO is the work of making your website easy for search engines to understand and easy for people to find in search results.
  • Google Search Console Google Search Console is a free tool from Google that shows how your website performs in Google Search and which pages Google has trouble reading.
  • noindex Noindex is a rule, set in a meta tag or an HTTP header, that tells search engines not to show a page in their results.
  • robots.txt A robots.txt file is a plain text file at the root of your site that tells search crawlers which URLs they may visit.
  • CMS A CMS (content management system) is software that lets you publish and change the text, images and other content on your website without writing code.

References

  1. Influencing your title links in search results, Google Search Central. Read 27/11/2026.Make sure every page on your site has a title specified in the <title> element.
  2. <title>: The Document Title element, MDN Web Docs. Read 27/11/2026.Try to make sure your titles are as unique as possible within your own site.
  3. SEO Starter Guide, Google Search Central. Read 27/11/2026.Most CMSes can automatically turn the titles you write into a <title> element in the HTML.