A title tag is a short line of text that tells what a web page is about. It shows up in the browser tab and also appears as the blue link on search engine results pages. A good page title helps people and search engines know if the page is useful.

How does a title tag help users and SEO

The title tag tells what a webpage is about, using short and clear text. It sits inside the <head> part of an HTML page and is not seen on the main page body. Each page must have one title tag only. It cannot include HTML code, images, or links.

Use in browser tabs

Web browsers show the title tag in the tab name and window title. For example, if a page says <title>Chocolate Cake Recipe</title>, users will see “Chocolate Cake Recipe” in the browser tab. This helps users find and switch between tabs quickly. If the title tag is missing, browsers may show “Untitled” or just the page URL, which is harder to follow.

Appearance in search results

Search engines often use the title tag as the main headline on search engine results pages. This blue clickable text is usually taken straight from the page’s title.

A strong page title with useful words can help the page get more clicks. If the tag is missing or unclear, the search engine may make its own title from other parts of the page.

When someone saves a webpage as a bookmark or shares it on social media, the title tag becomes the label or preview name. Apps like WhatsApp, Facebook, or X often use this tag to show the link title. Clear titles help people remember what the link is for, even after closing the tab.

Not the same as headings or tooltips

The title tag is not the same as a page heading like <h1> or the HTML title attribute (which shows tooltips). The heading appears in the body of the page. The title tag helps when the page is viewed outside its normal layout—like in tabs, bookmarks, or search results—where context is missing.

How do I write a title tag in HTML

The title tag is a required part of every HTML document. It must be placed inside the <head> section and should appear only once on each page.

Basic syntax

The correct structure is:

<head>

<title>Example Page Title</title>

<!– other head elements –>

</head>

Both the opening and closing title tags are mandatory. If the closing tag is missing, browsers may read the rest of the page as part of the title, which can break the layout.

Text-only content

The content inside the title tag must be plain text. HTML tags like <b>, <i>, or <span> inside it will not work. For example:

<title><b>Bold Title</b></title>

This will not create a bold title. The tags will be shown as text or cause issues in display.

Title length and character handling

While there is no strict character limit in HTML, most browsers and search engine interfaces cut off long titles. Older best practices suggest keeping titles under 60 to 65 characters for clean display.

Long titles may get shortened with an ellipsis in:

  • browser tabs
  • bookmark menus
  • search result snippets

A good title should be short, clear, and meaningful. A vague title like <title>Recipe</title> gives very little value. A better option is:

<title>The Best Chocolate Cake Recipe (Easy & Moist)</title>

This tells the reader exactly what to expect, and search engines can use it as the visible link on search engine results pages.

What happens if the tag is missing

If the title tag is empty or missing, the browser might show a label like “Untitled”, or fallback to the page URL. Search engines will try to guess the page title from other text or metadata, which may reduce visibility or relevance in results.

What role does a title tag play in SEO

The title tag is one of the most important elements in on-page SEO. It tells search engines what the page is about and often becomes the blue clickable link on search engine results pages.

Impact on search ranking

Search engines look at the title tag to decide how relevant a page is for a user’s search. Pages that include clear and well-matched keywords in the title can appear higher in results. For example, if a page talks about “chocolate cake recipe,” that phrase should be part of the title tag.

But search engines also check if the words feel natural. Keyword stuffing—repeating words just to add them—can hurt the page. In some cases, search engines may even rewrite the title if they think it is unhelpful.

Role in user clicks

A good page title also improves the chance of getting clicked. It should be specific, easy to read, and match what the user wants. A strong title like: 10 Tips for a Moist Chocolate Cake – Easy Recipe
tells more than a short title like: Cake Tips

When users search, they read these titles before choosing what to click. So a clear and useful title tag helps both people and search engines understand the value of the page.

Why it matters

If the title is missing or too vague, the page can lose ranking. Some pages drop in results simply because their title tag was weak or empty. On the other hand, a strong, clear, and accurate title can boost both ranking and click-through rate.

How do I write an effective title tag

Writing a good title tag means keeping it short, useful, and focused on the page topic. A well-written title helps search engines understand your content and makes users more likely to click on your link.

1. Keep it short and visible

Try to keep the title between 50 to 60 characters. Most browsers and search engine results pages (SERPs) show only this much before cutting it off. A long title may get shortened, and users might miss the important part.

2. Use keywords in a natural way

Place the main keyword or key phrase near the start of the title. This helps both users and search engines quickly see what the page is about. For example:

Budget Travel Tips – How to Save on Every Trip

Avoid keyword stuffing, like repeating the same word or listing keywords without meaning.

3. Make every title unique

Each page on your site should have its own title tag. Do not use the same title for all pages, like “My Blog”. Unique titles make it clear what each page offers and help users tell pages apart in tabs or search results.

4. Describe the page truthfully

The title tag should match what is on the page. It sets an expectation for the user. Use clear words that explain what they will find. For example:

Canon EOS R7 Review – Is It Worth It in 2025?

Avoid titles like “Home” or “Welcome” because they give no context.

5. Add branding when it helps

If your brand is trusted or known, you can add the name at the end. A common format is:

Page Topic – Brand Name
Example: Easy Chocolate Cake Recipe – BakingDelights.com

Put the main topic first, and keep the brand second. If your brand is new or not well-known, you can skip it on most pages.

6. Review and update over time

Check your title tags often. Make sure they are still useful, clear, and within the best length. Updating old titles can help with better SEO performance and more user clicks.

How does Google decide to change a page title

Even when a webpage has a valid title tag, search engines like Google may choose to show something else in the search result snippet. This process is called title rewriting.

Why search engines rewrite titles

In 2021, Google updated how it generates titles in search engine results pages (SERPs). Google now sometimes replaces the given title tag with other text if the original:

  • is too long and cannot fully display
  • contains keyword stuffing or looks spammy
  • uses boilerplate text like “Home” on every page
  • is missing or nearly empty

How replacement titles are generated

If a title is replaced, Google might use:

  • the page’s H1 heading
  • anchor text from links pointing to the page
  • parts of the URL or slug
  • text from the page that seems more relevant

For example, if a title tag is just “Home” and the page has a clear H1 like “Welcome to Delight Cakes – Online Recipes”, Google may use the H1 instead.

In some cases, Google may even display the site name or a snippet of text from the navigation bar.

Why it matters

Google’s goal is to improve how users understand each search result. Titles that are short, specific, and contextual are more likely to be shown as-is.

What site owners should do

To avoid losing control over how titles appear in search:

  • follow best practices for length and clarity
  • avoid using vague or generic phrases
  • never reuse the same title across many pages
  • monitor important pages in search results

If Google keeps changing a title, consider rewriting it yourself using more descriptive and helpful language.

By crafting strong title tags, you reduce the risk of rewriting and keep your pages looking sharp in the search results.

What is the history of the HTML title tag

The title tag has existed since the beginning of the web. It was one of the first HTML elements defined by Tim Berners-Lee in the original HTML specification in 1991.

Role in early HTML standards

By the time HTML 2.0 was published in 1995, and later in HTML 4.01 (1999), the title element was already a required part of the <head> section. Its job was to identify the content of the page clearly and simply. These early standards made it clear that every HTML page must have one proper title tag.

Rise of SEO influence

As search engines became the main way users discovered websites in the early 2000s, the title tag took on more weight. Webmasters began crafting titles not just for users, but to influence how pages ranked in search results.

This led to:

  • research on optimal title length
  • practices like keyword placement
  • awareness of how different browsers and search engines displayed titles

A W3C note from the 1990s already advised keeping titles under 64 characters, to prevent cutoff in bookmarks and tab names. This still holds true today.

Modern changes and ongoing relevance

In recent years, Google and other engines have added title rewriting algorithms to improve snippet quality, shifting focus from keyword use alone to clarity and truthfulness of titles.

Despite these changes, the core purpose of the title tag remains the same: to offer a clear, meaningful label for a web page. It is still a basic requirement in HTML and a central element in on-page SEO.