以下图片与强引蜘蛛池和搜狗蜘蛛 agent相关:
<title>
标签:描述网页内容,标题应包含相关关键词,长度不要超过70个字符<meta name="description" content="...">
:网页描述,包含相关关键词,长度不要超过160个字符<meta name="keywords" content="...">
:网页关键字,将网页关键字列出,以逗号分隔,注意不要重复关键字<meta name="robots" content="noindex,follow">
:设置robots属性,从而告诉搜索引擎不要索引该页面,但是可以继续访问该页面里的链接<meta name="robots" content="index,nofollow">
:与上面的标签作用相反,告诉搜索引擎可以索引该页面,但是不要访问该页面里的链接<meta name="referrer" content="no-referrer-when-downgrade">
:设置referrer属性,从而告诉浏览器当从HTTPS网站链接跳转到HTTP网站时不要将Referrer信息发送给目标站点<meta name="viewport" content="width=device-width, initial-scale=1">
:通过设置viewport属性适配不同设备的屏幕宽度<script type="application/ld+json">
:使用JSON-LD标签,将结构化数据嵌入网页,使得搜索引擎更好的理解网站内容"@context": "http://schema.org"
:定义结构化数据的上下文"@type": "WebSite"
:定义网站的类型"name": "网站名称"
:定义网站的名称"url": "https://www.example.com/"
:定义网站的URL"description": "网站描述"
:定义网站的描述"publisher": {"@type": "Organization", "name": "组织名称", "logo": {"@type": "ImageObject", "url": "https://www.example.com/logo.png"}}
:定义发布者信息及其logo"AggregateRating": {"@type": "AggregateRating", "ratingValue": "5", "reviewCount": "10"}
:定义网站的评分及评论数量"WebPage": {"@type": "WebPage", "headline": "网页标题", "description": "网页描述", "inLanguage": "中文", "isPartOf": {"@type": "WebSite", "name": "网站名称", "url": "https://www.example.com/"}}
:定义网页的类型,标题和描述以下是一个具体的例子:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "Example",
"url": "https://www.example.com/",
"description": "This is an example website.",
"publisher": {
"@type": "Organization",
"name": "Example Corporation",
"logo": {
"@type": "ImageObject",
"url": "https://www.example.com/logo.png"
}
},
"AggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "10"
},
"WebPage": {
"@type": "WebPage",
"headline": "Example Website",
"description": "This is an example website.",
"inLanguage": "en-US",
"isPartOf": {
"@type": "WebSite",
"name": "Example",
"url": "https://www.example.com/"
}
}
}
</script>