/ โ† Meta Tag Fixes / Title Tag vs Title Attribute
In this guide
  1. Two different things that share a name
  2. The title tag: what it does for SEO
  3. The title attribute: what it actually does
  4. Does the title attribute help SEO?
  5. When a title attribute helps, and when it harms
  6. How to find title attributes on your site
  7. The fix, step by step
  8. Edge cases worth knowing
  9. Keeping titles right
  10. Questions and answers

Two different things that share a name

People often mix up the title tag and the title attribute because both are called "title". They do completely different jobs.

Title tagTitle attribute
Written as<title>Opening hours | Example Bakery</title><a href="https://example.com/menu" title="Download our menu">
Where it goesOnce, in the <head>On any element in the body
What people seeBrowser tab, bookmarks, search resultsA tooltip on mouse hover, after a delay
SEO weightHigh: a strong relevance signal and your search headlineLittle to none
AccessibilityAnnounced when a screen reader opens the pageInconsistent: often ignored or read as a description
Required?Yes, every page needs oneNo, except on iframes, where a title is needed to name them

So the short answer to the difference between a title tag and a title attribute: the title tag is the name of the page, the title attribute is an optional note on one element inside it.

The title tag: what it does for SEO

The title tag sits in the head of every page:

<head>
  <meta charset="UTF-8">
  <title>Sourdough Classes for Beginners | Example Bakery</title>
  <meta name="description" content="Weekend sourdough classes for beginners...">
</head>

Google uses it as the main source for the title link it shows in results, although it can rewrite the text when the tag is missing, repeated across many pages, stuffed with keywords or does not match the page. A good title tag is unique to the page, describes what the page offers in the words people search, and is usually short enough to show in full, around 50 to 60 characters. The title tag guide covers writing and length in detail, and Google rewriting your title explains why the result can differ from what you wrote.

In WordPress, the field that sets the title tag is usually the SEO title in Yoast or Rank Math, not the post title, although the post title is used when no SEO title is set.

๐Ÿ’ก There is no such thing as a title tag for a link. When people search for a "title tag for links", they mean the title attribute on an <a> element, which is a different thing with a much smaller effect.

The title attribute: what it actually does

A title attribute on a link looks like this:

<a href="https://example.com/files/menu.pdf" title="PDF, 240 KB">Download our menu</a>

What happens with it depends on how the visitor reaches the link:

Because so many visitors never see it, anything important must not live only in a title attribute. If a link opens a PDF or a new tab, say so in the visible link text or next to it.

Does the title attribute help SEO?

For links, the text that matters to search engines is the anchor text, the visible words inside the <a> element. Google's guidance on links asks for descriptive anchor text and does not treat the title attribute as a replacement for it. A link reading "click here" with title="Sourdough classes" is still a "click here" link. Improve the words people can see instead; see link text fixes and anchor text fixes.

For images, Google's image guidance relies on the alt attribute, the file name, captions and nearby text. The title attribute is not a substitute for alt text. If your theme only sets a title on images, add proper alt text; the alt text guide explains how. A common reason people want image titles is that they expect alt text to show on hover. It does not in modern browsers, which is covered in alt text not showing on hover.

Filling every link and image with keyword-heavy title attributes does not lift rankings, and it adds noise for screen reader users. Leave them off unless they add real information.

When a title attribute helps, and when it harms

UseVerdictBetter approach
<iframe title="Map of our shop">NeededKeep it. It names the frame for screen readers
Extra detail such as file type or size on a download linkHarmless, but hidden from manyAlso put it in visible text: Menu (PDF, 240 KB)
Repeating the link text exactlyHarmfulRemove it. Some screen readers read it twice
Icon-only link with a title and no textWeakAdd an aria-label or visually hidden text
Warning that a link opens a new tabWeakVisible text or an icon with hidden text
Keywords on every link or imagePointlessDescriptive anchor text and alt text
<abbr title="Value Added Tax">VAT</abbr>Partly usefulSpell out the term the first time it appears

The one place you should always use a title attribute is an <iframe>: embedded videos, maps and forms need a short title that describes their content, so screen reader users know what the frame contains before entering it. For icon buttons, see ARIA label fixes.

How to find title attributes on your site

Start with what the server sends. These commands print the title tag and every link with a title attribute:

curl -s https://example.com/ | grep -oE '<title>[^<]*</title>'
curl -s https://example.com/ | grep -oE '<a [^>]*title="[^"]*"[^>]*>' | head -30
curl -s https://example.com/ | grep -oE '<img [^>]*title="[^"]*"[^>]*>' | head -30

For the rendered page, including anything added by scripts, paste this into the DevTools console. It lists every element with a title, its text, and whether the title just repeats it:

console.table([...document.querySelectorAll('body [title]')].map(el => {
  const text = (el.innerText || el.alt || '').trim();
  return { tag: el.tagName, title: el.title, text: text.slice(0, 60),
           duplicate: text.toLowerCase() === el.title.trim().toLowerCase() };
}));

Platform notes

The fix, step by step

Step 1

Check every page has a title tag

Fetch a sample of pages with curl -s and grep '<title>', or use a crawler, and confirm each has exactly one title tag in the head. Look for missing titles, the same title on many pages, and titles that only say the site name. Fix them in the SEO plugin or the template so each page has a unique title that describes its content, and recheck a few pages afterwards.

Step 2

Write titles people search for

Rewrite weak title tags so they lead with the words searchers use for that page, followed by your brand, at roughly 50 to 60 characters. Keep each one accurate to the page content, because Google may rewrite titles that do not match. Use the SEO title field in WordPress plugins or the page title setting in your platform, then check the rendered head to confirm the new text is served.

Step 3

List the title attributes in use

Run the DevTools console snippet on your main templates, such as the home page, a blog post, a product and the contact page, to list every element with a title attribute. Note which are on links, images, iframes and form fields, and which simply repeat the visible text. This list is your working sheet for the rest of the fix, so keep it alongside the template names.

Step 4

Remove duplicate and keyword titles

Delete title attributes that repeat the link or button text, and any that were added only to hold keywords. In WordPress, clear the Title Attribute field on menu items and check theme options that add titles automatically. In Shopify or custom themes, remove title= from the product card and menu snippets. Reload and run the snippet again to confirm the duplicate column is now empty.

Step 5

Move important information into visible text

Where a title attribute carries something visitors need, such as a file type, file size or a warning that the link opens a new tab, add that information to the visible link text or beside it, for example Menu (PDF, 240 KB). You can then keep or remove the title. Check the page on a phone, where tooltips never appear, to make sure nothing important is lost.

Step 6

Fix image titles and alt text

For each image that has a title but weak or missing alt text, write a short, accurate alt that describes the image in context, or an empty alt for purely decorative images. Remove the image title unless it adds real detail. In WordPress, edit the alt text in the media library or the image block. Recheck with curl and grep '<img' that the served HTML carries the new alt.

Step 7

Give every iframe a title

Search your pages for <iframe and add a short title to each one that describes what it contains, such as Map of our shop or Video: shaping a sourdough loaf. For embeds added through a plugin or page builder, look for a title or accessibility field in its settings. Check with a screen reader or the DevTools accessibility pane that each frame now has a name.

Step 8

Confirm with an audit and a screen reader

Rerun your meta tag audit to check title tags, then test one or two pages with a screen reader such as NVDA or VoiceOver. Tab through the links and listen: each should be announced once, with a clear name, and nothing should be read twice. Fix any remaining duplicates or vague links, and add the console snippet to the checks you run after each theme or plugin update.

Edge cases worth knowing

Keeping titles right

  1. Give every page a unique, descriptive title tag and check it whenever a template changes. The title tag tutorial is a quick refresher.
  2. Write link text that makes sense on its own, so no title attribute is needed to explain it.
  3. Keep alt text on every meaningful image and leave image title attributes off.
  4. Title every iframe, and include that check in your accessibility review.
  5. Run the console snippet on key templates after theme updates and remove duplicates it flags.
Questions and answers

1. What is the difference between a title tag and a title attribute?

A title tag is the title element in the head of a page and names the whole document, while a title attribute is an optional note added to a single element such as a link or image. The title tag appears on the browser tab and is Google's main source for the title link in search results, so it matters a great deal for SEO. The title attribute shows as a tooltip on mouse hover, is invisible on touch screens and carries little or no SEO weight.

2. Is there a title tag for links?

No, there is no title tag for links; what people mean is the title attribute on an anchor element. It is written inside the opening a tag and shows a tooltip when a mouse hovers over the link. Search engines rely on the visible anchor text to understand where a link leads, not on the title attribute. If you want a link to be clearer for visitors and for Google, rewrite its visible text so it describes the destination.

3. Does the title attribute help SEO?

The title attribute gives little or no SEO benefit on links or images. Google's guidance on links is about descriptive anchor text, and its image guidance is about alt text, file names, captions and the text around the image. Adding keyword-filled title attributes will not lift rankings and can make pages noisier for screen reader users. Put your effort into the page title tag, clear link text and good alt text, which all have a real effect.

4. Is the title attribute good for accessibility?

The title attribute is usually not good for accessibility on its own. Touch screen and keyboard users rarely see it, and screen readers handle it inconsistently, sometimes skipping it and sometimes reading it as well as the link text. The exception is the iframe element, which needs a title so screen reader users know what the frame contains. For icon-only buttons and links, use visible text or an aria-label, and for form fields use a proper label element.

5. Should I add a title attribute to images?

You do not need to add a title attribute to images, and it should never replace alt text. Alt text is what screen readers announce and what search engines use to understand the image, while the title attribute only adds a hover tooltip that touch screen users never see. If you want visible information about an image, use a caption below it. WordPress keeps an image title in the media library, but it is not printed on the image tag.

6. Should a link title repeat the link text?

No, a link title should never repeat the link text. It adds nothing for sighted visitors, and some screen readers announce both, so the user hears the same words twice. Remove such titles. If you want to add something, it should be genuinely extra, such as the file type and size of a download, and even then it is better placed in the visible link text, because many visitors never see the tooltip at all.

7. How long should a title tag be?

A title tag should usually be around 50 to 60 characters so that it shows in full in most search results. Google actually trims titles by pixel width rather than a fixed character count, so wide letters use up the space faster. Put the most important words first, so the meaning survives if the end is cut off, and keep the brand name at the end. Longer titles are not penalised, but the extra words may be hidden or rewritten.

Check your title tags and link text in one audit

The meta tag analyser on aiwebpageseo.com reads your page title, description and headings as search engines see them, so you can fix the title tag that matters before worrying about tooltips.

Open Meta Tag Fixes โ†’
๐Ÿ’ฌ Got a problem?
Related Guides: All Meta Tag Fixes  ·  Title Tag Fixes  ·  Link Text Fixes  ·  Alt Text Fixes  ·  Google Rewriting Your Title  ·  Learning Hub

About aiwebpageseo

aiwebpageseo.com is a data-driven SEO and AEO (Answer Engine Optimisation) platform providing a free suite of technical SEO tools. Rather than relying on AI-theorised assumptions, the platform analyses live URL performance, delivering objective diagnostics, page speed metrics, CLS debugging, and site crawl data alongside actionable technical tutorials.