meta title attribute and title tag

Do these both accomplish the same thing? Should you use one or the other? Both?
13 Replies
Jochem
Jochem•14mo ago
There is no meta title tag I think you can put a title attribute on a meta tag, but that's just the global title attribute:
Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip.
Aaron
AaronOP•14mo ago
I know they are two separate things, I see how I wrote it could be confusing.
Jochem
Jochem•14mo ago
<meta title="My Cool Page"> will do nothing, where <title>My Cool Page</title> will set the page's title so yeah, separate, but the first one just isn't a thing unless I'm misunderstanding what you're asking about?
Aaron
AaronOP•14mo ago
I'm doing a deep dive on the meta tag and came across this: @Jochem
No description
vince
vince•14mo ago
Stack Overflow
Difference between tag and tag
Please clarify what is the difference between <meta name="title"> tag and <title></title> tag. <title>Page title</title> <meta name="title" cont...
VinceAggrippino
VinceAggrippino•14mo ago
I'll bet that answer from 2014 is, like a lot of stuff on SO, no longer valid. Note Google's currently documented guidelines regarding meta tags: https://developers.google.com/search/docs/crawling-indexing/special-tags
Google for Developers
Meta Tags and Attributes that Google Supports | Google Search Centr...
Google supports both page-level meta tags and tag attributes. Explore a list of the special tags that Google Search can support.
Jochem
Jochem•14mo ago
There is also zero mention of it in mdn which references the spec
Ylli
Ylli•14mo ago
Meta title is good for SEO. If you run lighthouse on your app it ll recommend it along with meta author etc. Meta title, author and so on.
Ylli
Ylli•14mo ago
Improve Your Lighthouse SEO Score | DebugBear
Learn about the SEO category in Lighthouse and what you can do to optimize your SEO score.
Ylli
Ylli•14mo ago
A bit more in depth explanation with a quick google search.
VinceAggrippino
VinceAggrippino•14mo ago
Are you sure about that? The site you linked doesn't mention <meta name="title" or use it in its own code. Instead, it emphasizes the importance of the <title>. Neither do mashable .com, smashingmagazine .com, developer.mozilla .org or w3schools. If I search for "meta name=title" I find several sites focused on SEO which say the "meta title tag" is <title> I'm inclined to believe Jochem's statement that it's just not a thing.
Jochem
Jochem•14mo ago
the google search thing you linked lists explicitly exactly which meta tags are used by the crawler, so for SEO anything else is superfluous at best and harmful at worst 🙂
Ylli
Ylli•14mo ago
No, you are correct. The meta names I was thinking about was 'description' and 'viewport' ---- not 'author' or 'keywords'. Sorry if I mislead you and I'm glad I linked you that page as it describes pretty clearly which and what you need.
Want results from more Discord servers?
Add your server