What Is a Title Tag?
A title tag is the HTML element that sets the official title of a web page. In your code it sits inside the <head> section and looks like this:
<head> <title>What Is a Title Tag? How to Write One for SEO</title></head>
That single line does a lot of work. It becomes the clickable blue headline in Google’s results. It’s the label on your browser tab. It’s the text that shows up when someone bookmarks your page or shares the link in Slack or on LinkedIn.
For most people, your title tag is the first thing they read about your page, often before they’ve seen a word of the actual content. Search engines read it to understand what your page covers. Humans read it to decide whether to click. A strong title helps you rank and pulls in traffic. A weak one buries good content where nobody finds it.
Title Tag vs. Meta Description vs. H1
These three get confused constantly. They’re related, but they do different jobs.
- Title tag: the clickable headline in search results and the text on your browser tab. It lives in the <head>, acts as a ranking signal, and works as your pitch in the search results.
- Meta description: the short gray summary under the title in search results. It isn’t a ranking factor, but a sharp one lifts your click-through rate.
- H1: the visible headline on the page itself, which readers see after they click. It can differ from your title tag, though the two should clearly relate. (That relationship matters more than most beginners realize, and I’ll come back to it.)
Quick way to remember it: the title tag wins the click, the H1 confirms the reader landed in the right place.
Why Title Tags Still Matter for SEO
Title tags pull weight in three ways.
First, they’re a ranking signal. The effect is modest rather than magic, but Google reads your title to gauge relevance, so a clear, keyword-aligned title helps the right people find you.
Second, they move click-through rate more than almost any other on-page element. Two results can sit side by side, and the one with the sharper title takes more of the clicks.
Third, titles increasingly decide whether you appear in AI-generated answers. When search results surface AI summaries that cite their sources, a clear, specific title is easier to pull in as a named reference, keeping your brand visible even on searches that end without a click.
Here’s the catch most guides skip: Google often replaces the title you wrote. A widely cited Zyppy analysis of nearly 81,000 titles found the search engine rewrote about 62% of them at least partially, and a 2025 update put the rate closer to 76%. So writing a great title isn’t enough. You have to write one Google has no reason to change.
How Long Should a Title Tag Be?
Aim for 50 to 60 characters.
The real limit is pixel width, not a strict character count. Google truncates titles at roughly 600 pixels of display space, and wide characters like W, M, and capitals eat that space faster than narrow ones like i, l, and t. The 50-to-60 range is the practical sweet spot that displays in full across most results.
The length data backs this up. In the Zyppy study, titles between 51 and 60 characters had the lowest rewrite rate, around 40%. Push past 70 characters and Google rewrote them almost every time. Go too short, like a homepage titled simply “Home,” and Google rewrote those roughly 97% of the time, because they told searchers nothing.
Before you publish, drop your draft into a free SERP preview tool and look at it the way a searcher will. That beats counting characters in your head.
How to Write Title Tags for SEO
Here’s the part you can act on today. Eight rules, each with a quick example.
1. Lead with your primary keyword. Readers and search engines both scan left to right, so put the phrase you want to rank for near the front. “Title Tags for SEO: A Beginner’s Guide” beats “A Beginner’s Guide to Understanding Title Tags.”
2. Keep it in the 50-to-60-character range. Long enough to describe the page, short enough to display in full.
3. Write for a human, not just a crawler. A keyword-perfect title that reads like a robot wrote it won’t earn the click. Make it specific and a little compelling, the way you’d write a headline you actually want to read.
4. Make every title unique. Duplicate titles confuse search engines and make your own pages compete with each other. Each page gets a title that reflects that page.
5. Match the search intent. Work out what someone wants when they type the query, then promise it. A how-to query wants a guide. A product query wants a product.
6. Add a hook. A number, a year, a benefit, or an audience makes a title concrete. “Running Shoes” is forgettable. “Best Running Shoes for Flat Feet (2026 Guide)” is clickable.
7. Put your brand at the end, and only when it helps. “Primary Keyword | Brand Name” is the standard pattern. On a long title, drop the brand so the useful words survive. (Worth knowing: removing brand names is the single most common change Google makes when it rewrites a title.)
8. Match your title to your H1. This is the underused move. The same Zyppy research found that aligning your title tag with your on-page H1 sharply cut the odds of a rewrite. In one example, titles using a pipe separator were rewritten about 41% of the time, but when that pipe also appeared in the H1, rewrites dropped to roughly 21%. The two don’t need to be identical, but they should carry the same core message.
One thing to avoid above all else: keyword stuffing. “Running Shoes, Buy Running Shoes, Cheap Running Shoes Online” reads as spam to people and to Google, and it’s a fast track to a rewrite.
A Simple Title Tag Formula
When you’re stuck, fall back on this structure:
Primary Keyword + Hook (modifier, number, year, or benefit) + Brand
Here’s how it fills in across common page types:
- Blog post: Best Running Shoes for Flat Feet (2026 Guide)
- Product page: Waterproof Hiking Boots, Free Returns | Northpeak
- Service page: Emergency Plumbing in Austin, TX | 24/7 Service
- Local business: Family Dentist in Tampa, FL | Bayshore Dental
- Homepage: Northpeak | Handmade Trail Gear, Shipped Free
Adapt the order so your keyword stays near the front, then trim until you’re under 60 characters.
Title Tag Examples: Before and After
Seeing the gap makes the rules stick.
- Before: Home
After: Northpeak | Handmade Trail Gear, Shipped Free - Before: Untitled Document
After: How to Repot a Snake Plant in 5 Easy Steps - Before: Running Shoes Buy Running Shoes Cheap Shoes Online
After: Best Running Shoes for Flat Feet (2026 Guide) - Before: Our Services
After: Emergency Plumbing in Austin, TX | 24/7 Service
Every “after” does the same three things: it leads with what the page is about, adds a reason to click, and stays short enough to display in full.
Why Google Rewrites Title Tags (and How to Stop It)
Google rewrites titles when it thinks it can serve searchers better than you did. The common triggers are titles that run too long or too short, read as vague or keyword-stuffed, don’t match the page content, or carry redundant branding. In the 2025 data, stripping out brand names was the most frequent change of all.
You can’t force Google to keep your exact title. There’s no setting for it, and Google has said one isn’t coming. What you can do is make rewriting unnecessary:
- Keep the title in the 50-to-60-character range.
- Match it to your H1.
- Be clear and specific instead of clever and vague.
- Drop brand clutter on pages where it doesn’t earn its space.
Do those four things and Google has far less reason to overrule you, which means the headline searchers see is the one you actually wrote.
Common Title Tag Mistakes to Avoid
Skip these and you’re already ahead of most pages:
- Keyword stuffing: cramming the same term in three times.
- Duplicate titles: reusing one title across many pages.
- Vague labels: “Home,” “Blog,” “Untitled,” “Page 2.”
- Ignoring intent: promising a guide when the searcher wants a product.
- Running too long: writing past 60 characters and getting truncated.
- Missing titles: shipping a page with no title at all and letting Google guess.
- Branding everything: tacking your company name onto every title, even when it crowds out the useful words.
How to Add or Edit a Title Tag
The method depends on your setup.
If you’re editing raw HTML, place the tag inside the <head>:
<head> <title>Your Page Title Here</title></head>
Most people use a CMS and never touch code. In WordPress with a plugin like Yoast or Rank Math, you’ll find an “SEO title” field below the editor, plus a preview. Shopify, Wix, and Squarespace offer a similar SEO panel on each page.
After you publish, request a recrawl in Google Search Console so the change reaches results sooner, usually within a few days.
The Takeaway
A title tag has to win two audiences in the same moment: the search engine deciding what your page is about, and the human deciding whether to click. The best titles do both, and they do it without giving Google a reason to rewrite them.
So put the rules to work now. Open your five highest-traffic pages, run each title through the eight-rule checklist, and preview it in a SERP tool. Rewrite the weak ones this week, starting with any page still titled “Home” or “Services.” It’s a one-hour project, and small edits to the first thing searchers ever read tend to pay off faster than almost anything else in SEO.
Frequently Asked Questions About Title Tag
What is a title tag example?
Here is a simple title tag example:
<title>Best Running Shoes for Flat Feet in 2026</title>
This title works well because it clearly describes the page, includes the main keyword, and gives searchers a reason to click.
Where is the title tag located?
The title tag is placed inside the <head> section of a web page’s HTML code. It is not usually visible on the page itself, but it can appear in the browser tab, search results, bookmarks, and link previews.
Example:
<head> <title>Your Page Title Here</title></head>
Where is the correct place to put the title tag?
The correct place to put the title tag is inside the <head> section of your HTML document. It should not be placed in the <body> section, because the title tag is page metadata, not visible page content.
What is the purpose of a title tag?
The purpose of a title tag is to tell search engines and users what a page is about. It helps search engines understand the topic of the page, and it helps users decide whether the page matches what they are looking for. A strong title tag can improve both SEO visibility and click-through rate.
Is a title tag mandatory?
Yes. The <title> tag is required in a valid HTML document. Every important page on your website should have a unique, descriptive title tag. Missing, duplicate, or vague title tags can make it harder for search engines and users to understand your pages.
What is the difference between a title tag and an H1 tag?
The title tag is the page title that search engines often use as the clickable headline in search results. It also appears in browser tabs and bookmarks. The H1 tag is the main heading users see on the actual page after they click.
A simple way to remember it is this: the title tag gets the click, and the H1 confirms the visitor landed on the right page.
How long should a title tag be?
A good title tag is usually around 50 to 60 characters long. This length gives you enough space to describe the page clearly while reducing the chance that Google will cut it off in search results. The exact limit depends on pixel width, not just character count.
Can Google rewrite my title tag?
Yes. Google may rewrite your title tag if it thinks another title would better match the page or the search query. This often happens when titles are too long, too short, vague, stuffed with keywords, or different from the page’s visible heading.
To reduce the chance of a rewrite, keep your title clear, concise, relevant, and closely aligned with your H1.
What are common title tag mistakes?
Common title tag mistakes include using the same title on multiple pages, stuffing keywords, making titles too long, using vague labels like “Home” or “Services,” leaving the title tag blank, and adding your brand name when it crowds out more useful information.
A strong title tag should be unique, specific, easy to read, and written for both search engines and real people.