Title Tag in HTML: Length, Format and SEO Examples

Title tag in HTML explained from code placement and length advice to page formulas and rewrite causes and live checks for small sites from Usher Media

Hands typing on a laptop with code on the screen

The title tag in HTML is a short line of text in the head of a page that names what the page is about. Browsers show it on the tab, and Google can use it as the clickable headline in search results. A clear one helps a searcher decide whether your page is worth opening.

This guide gives small business owners in India the code, the length advice, writing formulas and a way to check the live result.

Close view of colourful programming code on a dark monitor
Page code sits behind what visitors see on screen

What Does a Title Element Do?

The title tag is the everyday name for the HTML title element. MDN's reference for the title element says it defines the document title shown in the browser's title bar or the page's tab. It does several jobs at once.

  • Tab label: it helps people find your page again among many open tabs.
  • Search headline: it is one of the main sources Google reads when it builds a result headline.
  • Screen reader cue: MDN notes that screen reader users often read the page title to work out what a page holds.
  • Meta title: many SEO plugins and site builders use this name for the same field.

It is not the same as the main heading. The title element sits in the head and is not part of the page body, while the H1 is the heading that visitors read on the page.

How Do You Write a Title Tag in HTML?

Place one title element inside the head of each page. It takes plain text only, so any HTML tag typed inside it is treated as ordinary characters.

<head>
  <meta charset="utf-8">
  <title>
    AC Repair in Adyar | Ravi Cooling
  </title>
</head>

The business name above is invented for illustration. When you add or review the code, check these points:

  • Keep exactly one title element in the head.
  • Include both the opening and closing tags, because a missing closing tag can stop the rest of the page from showing.
  • Write the text in the same language and script as the main content of the page.
  • Do not place formatting tags, images or links inside it.
  • Give every page its own wording, including contact and policy pages.

Where Do You Edit It Without Touching Code?

Most small business sites run on a content management system or a website builder, so you rarely need to open the template. Labels differ between tools, so look for the idea rather than an exact button name.

  • Open the page in your editor and find its SEO or page settings area.
  • Look for a field labelled something like page title or SEO title.
  • Check whether the theme adds your business name automatically, so it does not appear twice.
  • Save, publish and then confirm the change on the live page.
  • On a hand-coded site, ask your developer to edit the head of that one file.

What Is the Right Title Tag Length?

There is no fixed number from Google. Its title link guidance says there is no limit on how long a title element can be, but the headline in results is cut short as needed, typically to fit the device width.

MDN adds that search engines typically display about the first 55 to 60 characters. Treat any meta title length advice as a working guide, not a rule that affects whether your page is accepted.

  • Put the page topic first, so a cut headline still makes sense.
  • Aim to finish the key message within roughly the first 55 to 60 characters.
  • Avoid one or two word titles, which say very little.
  • Remove filler such as "welcome to" or "home page of".
  • Preview on a phone, since the space for a headline changes with the screen.
Yellow tape measure and two metal rulers laid side by side on a white surface
Length advice is a guide, so put the important words first

Which Formula Works for Each Page Type?

A formula stops you from starting with a blank box. Pick the pattern that matches the page, then rewrite it in your own words. The SEO title examples below use made-up businesses and show structure only.

Page type Formula Illustrative example
Home Brand: main offer and city Meena Bakes: Custom Cakes in Chennai
Service Service in area and brand Bridal Makeup in Anna Nagar by Divya Studio
Product Product, key detail, brand Cotton Kurta with Pockets by Nila Wear
Blog guide Question or task plus outcome How to Descale a Geyser at Home
Contact Action plus brand Contact Kumar Dental in Tambaram

Before you accept a draft, run it through these quick tests:

  • Would a stranger know what the page offers from this line alone?
  • Does the wording match what the page actually delivers?
  • Is the main phrase present once, in natural order?
  • Is the place name there only where the page truly serves that place?
  • Could this line be pasted onto another page of your site? If yes, make it more specific.

How Do You Turn a Weak Title Into a Strong One?

Start from the searcher's question, then add the one detail that sets the page apart. These rewrites are invented examples.

  • "Services" becomes "Home Painting Services in Velachery".
  • "Best Cakes Cake Shop Cake Order Online" becomes "Order Birthday Cakes Online in Chennai".
  • "Page 2" becomes "Teak Dining Tables for Small Flats".
  • "Blog Post About GST" becomes "How to Read the GST Lines on Your Invoice".

The same page also needs a summary under the headline, which our guide on how to write a meta description covers separately.

Why Does Google Rewrite Your Title?

The headline shown in search is called a title link, and Google creates it automatically. It can draw on your title element, the main visible title, other headings, the og:title property, anchor text and links pointing to the page. You cannot force your wording, but you can remove common reasons for a change.

Problem Google may adjust What you can fix
Part of the title is missing Repair empty template fields
Date or year is out of date Match the visible page heading
Wording does not fit the content Describe what the page really covers
Many pages share near-identical text Add the detail that differs
No clear main heading Make one heading stand out
Language or script differs Match the page content

Google also advises against keyword stuffing and repeated boilerplate, and it may drop a site name that repeats the one already shown in the result.

  • Keep the H1 and the title element close in meaning.
  • Add your brand briefly at the start or end, separated by a mark such as a hyphen or colon.
  • After a fix, allow for recrawling, which Google says can take a few days to a few weeks.

How Can You Check Titles on a Live Site?

What you typed in the editor is not always what visitors receive, because themes and plugins can add or replace text. Check the published page.

  1. Open the page in a desktop browser and view the page source.
  2. Search the source for the opening title element and read the full line.
  3. Confirm that there is only one in the head.
  4. Hover over the browser tab to compare the visible label.
  5. Search Google for your page and note the headline shown.
  6. In Search Console, compare impressions and clicks by page to choose which titles to review first.

A crawler or title tag checker can speed this up on larger sites by listing missing, duplicate and very long entries. Treat its warnings as prompts to read the page, not as verdicts.

Stack of black ring binders with coloured index tabs on a white surface
A distinct label on each page makes it easy to tell them apart

Can a Generator Write Titles for You?

An SEO title generator can offer starting ideas, especially when you are stuck on wording. It does not know your stock, service area or what makes your page different, so a person still has to decide.

  • Give it the page topic, audience and one true point of difference.
  • Delete claims you cannot prove, such as "number one".
  • Read each option against the page before using it.
  • Never publish a batch of near-identical lines across pages.

What Mistakes Should You Fix First?

Start with pages that bring enquiries, then work through the rest. In our work at Usher Media, titles belong to the on-page step: the process on our SEO company in Chennai page says we optimise every title, heading, content block and image.

  • Missing or empty title elements.
  • The same line on many pages.
  • Lists of keywords that do not read as a sentence or phrase.
  • Old offers, years or locations left in place.
  • A homepage labelled only "Home".
  • A promise in the headline that the page does not keep.

For the wider page review, work through our on-page SEO checklist for small business. If you want to know how an audit is run before you ask for one, read the Report Zero process.

What Should Your Monthly Routine Look Like?

A short routine keeps titles accurate as services and pages change. Keep a simple sheet with the page address, current wording, date changed and reason.

  • Pick a few important pages each month.
  • Compare each live title with what the page now offers.
  • Change one thing and record it.
  • Review impressions and clicks after Google has had time to recrawl.
  • Keep a new version only if it still describes the page honestly.

Frequently asked questions

Will a better title element improve my Google ranking?

No wording guarantees a position. Google reads the title element when it builds the result headline, so a clear one helps searchers see what the page covers. Treat it as one part of on-page work, because a good line cannot make up for thin or unhelpful content.

Should the page title and the H1 be identical?

They do not have to match word for word. They should describe the same subject, so a visitor who clicks the result sees the page they expected. The title element can add a place or brand name that the on-page heading does not need.

Can I leave my business name out of page titles?

Yes, if space is tight on an inner page. Google advises branding titles briefly, and longer brand messaging suits the home page best. Where you do add the name, keep it short and place it at the start or end with a clear separator.

Why does my old wording still show in search results?

Google has to recrawl and reprocess the page before it notices a change, which can take a few days to a few weeks. First confirm the new text is in the live page source. If it is, you can ask Google to recrawl the address and then wait.

Does the og:title property replace the title element?

No. The og:title property sits in a separate meta element, and Google lists it among the sources it can read when it builds a result headline. Keep the title element on every page and keep both lines consistent so they do not contradict each other.

Can I write page titles in Tamil or Hindi?

Yes, when the main content of the page is in that language. Google advises writing the title in the same language and script as the page's primary content. An English title on a Tamil page is one of the mismatches it may adjust.

Are Your Page Titles Telling Searchers Enough?

Ask Usher Media for a free Report Zero audit. It includes a website and technical SEO check, keyword opportunities and an action plan, so you know which pages and titles to fix first.

Ask for My Page Title Review →