Himanshu SharmaSoftware engineer
Let’s talk

SEO Basics · Lesson 7 of 32

Title tags: how to write them for search and clicks

Write title elements that describe each page clearly, avoid stuffing and boilerplate, and understand why search engines sometimes show a different title.

11 minOn-page SEOUpdated 14 November 2026

Awaiting technical review. This lesson is readable but not yet listed in search engines.

By the end of this lessonWrite a distinct, descriptive title for a page, check it against the documented guidance, and explain why it may be rewritten in results.

After this lesson you can write a clear title for any page and explain, with the documentation in hand, why a title that is good for people is also good for search engines. The title is the single most visible piece of text you control in a search result.

What the title element is

The <title> element lives in the page's <head>. It is shown in the browser tab, in bookmarks, and often as the blue clickable line in search results. Google calls that clickable line the title link. It is not the same as the <h1>, which is the main heading shown on the page, though the two are usually related.

html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Sourdough Baking Classes for Beginners | Crumb & Co.</title>
</head>
<body>
  <h1>Sourdough baking classes for beginners</h1>
  <p>Look at the browser tab or the page title to see the title element at work.</p>
</body>
</html>

What Google's documentation recommends

Google Search Central's guidance on title links, summarised in plain words:

  • Every page should have a title element.
  • Make it descriptive and concise. "Home" or "Profile" say nothing.
  • Do not stuff it with keywords, and do not repeat the same text across pages. Each page should be distinguishable.
  • Mention your brand briefly, for example at the start or end, with a separator.
  • Make the main title clear on the page too; the first visible heading is a good place.
  • Use the same language and script as the page.

That is documented guidance. Beyond it, practitioners add habits, such as placing the primary phrase early. That is established practice, not a rule.

Length

There is no official character count. Google says titles are truncated to fit the available width, and shorter, concise titles are recommended. The common advice of staying near 60 characters comes from how wide the display tends to be in desktop results; it is a rule of thumb, and widths vary by device and by letters used. The practical approach: put the most important words first, so if the end is cut, you lose the brand rather than the topic. You can count characters with the word counter.

A formula that works

text
Primary topic or benefit | Brand
Sourdough Baking Classes for Beginners | Crumb & Co.
How to Feed a Sourdough Starter: A Weekly Routine | Crumb & Co.

Notice each title names the subject, hints at what the page is (classes, a how-to) and is different from every other page.

This site's own approach is a good real example. Its metadata helper in src/lib/seo.ts takes the page title and lets the layout add the site name as a suffix, and a home-page option uses a title exactly as given. The point of the design is that each page supplies only its own distinct part, and the brand is added consistently, never twice.

Why titles get rewritten

Google's documentation says it generates title links automatically and may use other text from the page when your title element is a poor description. Documented triggers include half-empty titles, outdated ones, text that does not match the content, shared boilerplate, no clear main heading, language mismatch and a doubled site name. Google also says it cannot manually change a single site's title link. So the remedy is to write a better title and a clear <h1>, not to fight the rewrite.

A rewritten title is not a penalty. It is a sign the engine thought another description served searchers better.

Matching intent

A title is a promise. A how-to query wants "How to..." and a clear answer; a commercial query wants a "best" or comparison cue; a local query wants the place. If your title promises something the page does not deliver, visitors leave quickly and the page was never right for them. Revisit search intent when you are unsure.

Checking titles across a site

You can check one page by eye. Checking forty is the job of a crawler, which lists every title and flags duplicates and missing ones. This site's audit script does exactly that: it reads every built page, warns when a title is outside a sensible length and errors when two pages share a title. We will read it in the project.

Common mistakes

  • The same title on every page, often "Home" or the company name.
  • Stuffing several variants: "Bread | Cheap bread | Bread London | Best bread".
  • Starting every title with the brand, wasting the best space.
  • Making clickbait promises the page does not keep.
  • Forgetting to update the title when the page's focus changes.
  • Using ALL CAPS or lots of symbols to stand out.

Exercise

Rewrite these three bad titles for a fictional bookshop, then count characters for each: "Home", "Books books books | Cheap books | Buy books online", "Page 2".

Show sample rewrites

Home page: "Pageturner Books: Independent Bookshop in Springfield" (illustrative name). Category page: "Children's Picture Books | Pageturner Books". A second page of a list: "Children's Picture Books, Page 2 | Pageturner Books". Each is descriptive, different and brand-consistent. Your versions will differ; what matters is that nobody could confuse two of them.

Key points

  • The title element names the page for search results, browser tabs and bookmarks.
  • Google's guidance: descriptive, concise, distinct on every page, no keyword stuffing, brand added briefly.
  • There is no official character limit, but long titles get cut off, so put the key words first.
  • Google may generate a different title link from the title, headings or anchor text when your title is poor.

Check yourself

1. Which title best follows the guidance?
2. Is there an official maximum title length from Google?
3. All 40 pages on a site have the title 'Welcome'. What happens?
4. Where should the most important words go in a long title?

Free tools for this lesson