Title Tag vs Title Attribute: When to Use title on Links and Images
The title tag and the title attribute sound alike, but they do very different jobs. The title tag names the whole page and is one of the most important things on it for search, because Google uses it as the clickable headline in results. The title attribute is an optional note on a single link, image or field, shown as a tooltip that touch screen and keyboard users usually never see. Mixing the two up leads to wasted effort, such as stuffing keywords into link titles, and to accessibility problems. This guide explains the difference, what each does for SEO and screen readers, when a title attribute helps or harms, and how to find and clean up title attributes on your own site.
- Two different things that share a name
- The title tag: what it does for SEO
- The title attribute: what it actually does
- Does the title attribute help SEO?
- When a title attribute helps, and when it harms
- How to find title attributes on your site
- The fix, step by step
- Edge cases worth knowing
- Keeping titles right
- 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.
- The title tag is the
<title>element inside the<head>of a page. There is one per page. It names the whole document: browsers show it on the tab, bookmarks use it, and Google uses it as the main source for the clickable title link in search results. - The title attribute is an optional attribute you can add to almost any element in the body, such as a link, an image or a form field. It gives extra advisory information about that one element. Desktop browsers show it as a small tooltip when the mouse rests on the element.
| Title tag | Title attribute | |
|---|---|---|
| Written as | <title>Opening hours | Example Bakery</title> | <a href="https://example.com/menu" title="Download our menu"> |
| Where it goes | Once, in the <head> | On any element in the body |
| What people see | Browser tab, bookmarks, search results | A tooltip on mouse hover, after a delay |
| SEO weight | High: a strong relevance signal and your search headline | Little to none |
| Accessibility | Announced when a screen reader opens the page | Inconsistent: often ignored or read as a description |
| Required? | Yes, every page needs one | No, 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.
<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:
- Mouse users see a tooltip after hovering for about a second, if they wait.
- Touch screen users on phones and tablets never see it. There is no hover on a touch screen.
- Keyboard users who tab to the link do not see it in most browsers.
- Screen reader users get mixed results. A screen reader works out the element's accessible name from its text,
aria-labeloralt, and uses the title attribute only as a last resort. When a link already has text, the title may be read as an extra description, read twice if it repeats the text, or skipped, depending on the screen reader and its settings.
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
| Use | Verdict | Better approach |
|---|---|---|
<iframe title="Map of our shop"> | Needed | Keep it. It names the frame for screen readers |
| Extra detail such as file type or size on a download link | Harmless, but hidden from many | Also put it in visible text: Menu (PDF, 240 KB) |
| Repeating the link text exactly | Harmful | Remove it. Some screen readers read it twice |
| Icon-only link with a title and no text | Weak | Add an aria-label or visually hidden text |
| Warning that a link opens a new tab | Weak | Visible text or an icon with hidden text |
| Keywords on every link or image | Pointless | Descriptive anchor text and alt text |
<abbr title="Value Added Tax">VAT</abbr> | Partly useful | Spell 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
- WordPress. The block editor does not add a title attribute when you insert a link or an image. The Title field in the media library is used inside WordPress and is not printed on the image. Title attributes in your HTML usually come from a theme, a menu setting (the Title Attribute option in Appearance, Menus, under screen options) or an old plugin.
- Shopify. Some themes copy the product name into a title attribute on every product link. Search the theme code for
title="in the snippets for product cards. - Static and custom sites. Search templates for
title=and decide on each one using the table above.
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
- SVG icons. Inside an inline SVG, the
<title>element is a child element, not an attribute, and it can give the graphic an accessible name. That is different from both the page title and the title attribute. - Feeds and stylesheets.
<link rel="alternate" type="application/rss+xml" title="Blog feed">uses the title attribute to label the feed. That is correct and harmless. - Form fields. A title on an
<input>can act as its accessible name if nothing else does, but a visible<label>is far better for everyone. - Tooltips that cover content. Native tooltips can cover nearby text and cannot be dismissed with the keyboard. If you need a real tooltip, build one that appears on focus and hover and closes with Escape.
Keeping titles right
- Give every page a unique, descriptive title tag and check it whenever a template changes. The title tag tutorial is a quick refresher.
- Write link text that makes sense on its own, so no title attribute is needed to explain it.
- Keep alt text on every meaningful image and leave image title attributes off.
- Title every iframe, and include that check in your accessibility review.
- Run the console snippet on key templates after theme updates and remove duplicates it flags.
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.
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 โ