Skip to content
Tutorials Center
My learning

Topics

Lesson 14 of 36 ยท On-Page SEO

Title Tags and Meta Descriptions

Write title tags and meta descriptions that match intent and earn clicks: length, wording, rewriting by search engines, Open Graph tags, and a checker you can run.

The title tag and the meta description are the first things a searcher reads about your page. They are your headline and your pitch. The title is a real ranking input because it states what the page is about; the description is not used for ranking, but it often becomes the snippet and strongly affects whether someone clicks.

On-page SEO begins here because these two elements are easy to fix, easy to measure and affect every page on your site.

The title tag

The title lives in the <head> of the HTML:

HTML
<title>How to Repot a Tomato Plant: Step-by-Step Guide</title>

Search engines usually use it for the clickable title link in results, and browsers show it in tabs and bookmarks.

Rules of thumb

  • Put the main topic first. The beginning is the most visible part and survives truncation.
  • Be accurate. The title must describe the page. Misleading titles raise bounce rates and may be rewritten.
  • Aim for roughly 50 to 60 characters. Engines cut titles by pixel width, not by character count, so wide letters (W, M) use more room. Longer titles are allowed; the extra just may not show.
  • Make it unique across the site. Duplicate titles confuse both users and engines.
  • Write for humans. Include the primary phrase once, naturally, plus a reason to click: a number, a qualifier, a benefit, the year if the content is date-sensitive and kept up to date.
  • Brand at the end, separated by a dash or pipe, for pages where the brand helps. The home page can put it first.
  • Avoid stuffing ("Tomato pots | Tomato pot | Buy tomato pots cheap").

Good patterns: Primary topic: benefit or qualifier | Brand, Number + topic + qualifier, How to + task (+ time or level), Topic vs topic: which is better for X.

Search engines often rewrite titles, especially when the title is too long, stuffed, generic (such as just "Home") or does not match the page or the query. A rewritten title is a signal that yours could be clearer.

The meta description

HTML
<meta name="description" content="Learn when to repot tomatoes, which pot size to choose and how to bury the stem for stronger roots. Includes a step-by-step checklist.">

It is a summary of the page for people. The engine may use it as the snippet, or may build a snippet from the page text if it better matches the query. Practical guidelines:

  • Around 120 to 160 characters is a safe target (more may be cut).
  • Describe what the reader gets, using a verb: learn, compare, find, calculate.
  • Include the topic phrase naturally; engines bold matching words in the snippet.
  • Unique for each page. If you cannot write a good one for a page type (such as thousands of product pages), a template with variables (name, key attribute, price range) beats duplicates, and leaving it empty is better than copying the same sentence everywhere.
  • No quotation marks inside the content unless escaped, since a straight double quote ends the attribute early.
  • Be honest. A promise the page does not deliver costs you trust.

Try it: a title and description checker

The program below checks lengths, duplicates and simple problems across a list of pages. The limits are common guidelines, not official rules.

Python Title and description checker

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The pepper page reuses the tomato title: a classic copy-paste error that this kind of check finds across hundreds of pages.

Titles are not the same as headings

The title tag is the page's label in results and tabs. The visible h1 heading introduces the content to the reader on the page. They should agree on the topic but need not be identical. The title is a promise to a searcher in a hurry; the h1 can be a bit more descriptive. See headings and content structure.

Social sharing tags: Open Graph and Twitter cards

When a link is shared in a chat or social network, the platform builds a preview from special meta tags. They do not influence search ranking directly, but they make shared links more clickable.

HTML
<meta property="og:title" content="How to Repot a Tomato Plant">
<meta property="og:description" content="When to repot, which pot to choose, and how to bury the stem.">
<meta property="og:image" content="https://example.com/images/repot-tomato.jpg">
<meta property="og:url" content="https://example.com/guides/repot-tomato-plant">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary_large_image">

Use an image large enough for a wide preview (commonly around 1200 by 630 pixels).

Try it: build a preview from tags

This page reads the tags of its own document and prints what a social preview would use. It is a self-contained demonstration of how crawlers read the head.

Read head tags

Testing and improving

  • Review the performance report in your search console: pages with many impressions and a low click-through rate are the best candidates for a better title and description.
  • Change one thing at a time and wait a few weeks, comparing against a similar period.
  • Do not change titles of high-performing pages just for fun. A change can lose rankings it had earned.
  • Keep a record of old and new titles in your changelog.

Common mistakes

  • Every page titled with the same brand phrase.
  • Titles that are only the brand or "Home".
  • Keyword-packed titles that read like spam.
  • Descriptions that are empty, duplicated or cut off.
  • Titles that promise something (such as "free") that the page does not offer.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which HTML element usually supplies the clickable title link in search results?

    The title element is the main source, though engines may rewrite it.
  2. 2. Is the meta description a direct ranking factor?

    Descriptions are used for snippets, which influence click-through, not as a ranking input.
  3. 3. What is a sensible title structure for most inner pages?

    Putting the topic first keeps the key information visible even if the end is cut.
  4. 4. A page's title is rewritten by the search engine. What does this usually suggest?

    Rewrites happen when the engine thinks another text describes the page better.

Summary

  • The title tag is a ranking input and the headline of your result; keep it accurate, unique and topic-first.
  • The meta description is a pitch for the snippet; about 120 to 160 characters, unique and honest.
  • Engines may rewrite either one if it does not fit the page or query.
  • Open Graph and Twitter tags improve link previews on social platforms.
  • Use search console data to find pages whose titles need work, and change one thing at a time.

Next: Headings and Content Structure