我必须在我的网站上放置哪些重要的元标记? [英] What are the important meta tags I must put in my website?
问题描述
您可以设置大量的元标记。我猜测他们中的一些比其他人更重要。
最重要的元标签是什么?为什么?
我甚至需要meta标签吗? (查看stackoverflow主页上没有)
我意识到这个问题已经过时,但它仍然是顶级的谷歌命中,所以我想我会给出一个更新的答案,其中包括流行的社交媒体网站。
我通常有四组元信息:
常规元信息 - 由搜索引擎和浏览器使用
<标题> {{PAGETITLE}}< /标题>
< meta charset =utf-8><! - html5版本的http-equiv =Content-Type... - >
< meta name =descriptioncontent ={{description}}>
< meta name =keywordscontent ={{}}}>
< link rel =authorhref =https://plus.google.com/{{googlePlusId}}/>
< link rel =canonicalhref ={{pageUrl}}/>
Facebook Meta Info - 使用者当某人分享您的网址时,Facebook
< meta property =og:urlcontent ={{pageUrl}}> ;
< meta property =og:imagecontent ={{imageUrl}}>
< meta property =og:descriptioncontent ={{description}}>
< meta property =og:titlecontent ={{pageTitle}}>
< meta property =og:site_namecontent ={{siteTitle}}>
< meta property =og:see_alsocontent ={{homepageUrl}}>
Google+元信息 - 使用者Google+有人分享您的网址时
< meta itemprop =namecontent ={{pageTitle}}>
< meta itemprop =descriptioncontent ={{description}}>
< meta itemprop =imagecontent ={{imageUrl}}>
注意:您并不需要这些,Google +会回落到Open Graph标签,Facebook
$ b
< meta name =twitter:cardcontent =summary>
< meta name =twitter:urlcontent ={{pageUrl}}>
< meta name =twitter:titlecontent ={{pageTitle}}>
< meta name =twitter:descriptioncontent ={{description}}>
< meta name =twitter:imagecontent ={{imageUrl}}>
There seems to be huge number of meta tags you can set. I'm guessing that some of them are more important than others.
What are the most important metatags to supply and why?
Do I even need meta tags? (looking at the stackoverflow homepage there are none)
I realize this question is old, but it's still a top google hit, so I thought I would give an updated answer that includes popular social media sites.
I generally have four groups of meta info:
Regular Meta Info - used by search engines and browsers
<title>{{pageTitle}}</title>
<meta charset="utf-8"><!-- html5 version of http-equiv="Content-Type"... -->
<meta name="description" content="{{description}}">
<meta name="keywords" content="{{keywords}}">
<link rel="author" href="https://plus.google.com/{{googlePlusId}}" />
<link rel="canonical" href="{{pageUrl}}" />
Facebook Meta Info - used by Facebook when someone shares your url
<meta property="og:url" content="{{pageUrl}}">
<meta property="og:image" content="{{imageUrl}}">
<meta property="og:description" content="{{description}}">
<meta property="og:title" content="{{pageTitle}}">
<meta property="og:site_name" content="{{siteTitle}}">
<meta property="og:see_also" content="{{homepageUrl}}">
Google+ Meta Info - used by Google+ when someone shares your url
<meta itemprop="name" content="{{pageTitle}}">
<meta itemprop="description" content="{{description}}">
<meta itemprop="image" content="{{imageUrl}}">
Note: you don't really need these, Google+ will fall back to the Open Graph tags that Facebook uses.
Twitter Meta Info - used by Twitter when someone shares your url
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="{{pageUrl}}">
<meta name="twitter:title" content="{{pageTitle}}">
<meta name="twitter:description" content="{{description}}">
<meta name="twitter:image" content="{{imageUrl}}">
这篇关于我必须在我的网站上放置哪些重要的元标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!