SEO
标签元素¶
html lang¶
<html lang="">
规范值请查看 HTML Language Code Reference
title 标题¶
<title></title>
- ahrefs 的建议 "50 - 70 个字符(max 600 pixels)"
- 必应的建议是"不少于 15 个字符"
- Google 关于标题的最佳实践
meta keywords 关键词¶
<meta name="keywords" content="">
meta description 描述摘要¶
<meta name="description" content="">
- ahrefs 的建议 "110 到 160 个字符之间"
- Google 中控制搜索结果中的摘要
结构化数据 Schema¶
"网站名称" 的结构化数据格式,简单例子:
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "WebSite",
"name" : "网站名称",
"alternateName" : "别名",
"url" : "网址"
}
</script>
点击查看 Google 搜索支持的结构化数据标记,文章、导航、数据集、轮播、课程、数据、论坛、问答、活动、常见问题等等。
添加了结构化数据后,可以通过 富媒体搜索结果测试 - Google Search Console 进行测试。
Schema 资料:
Schema.org 结构化数据标记图片内容的代码例子:
<div itemscope itemtype="https://schema.org/ImageObject">
<img src="image.jpg" alt="Sample Image" itemprop="contentUrl">
<meta itemprop="name" content="Sample Image">
<meta itemprop="description" content="A sample image for demonstration purposes.">
</div>
<div itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="contentUrl" src="image.jpg" alt="描述">
<link itemprop="sameAs" href="https://example.com/original-image">
</div>
Open Graph 标签¶
<html prefix="og: https://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="https://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>
调试器
- Facebook (meta) 调试器
- LinkedIn 分享调试器
- TG 缓存刷新机器人
@WebpageBot
Twitter 卡¶
代码例子可查看 关于 Twitter (X) Meta 代码例子说明
- Twitter 卡的说明
- Twitter 卡官方验证器
curl -v -A Twitterbot <url>
其他配置¶
robots 机器人爬虫¶
- index:允许搜索引擎索引(收录)这个页面;相反 noindex
- follow:允许搜索引擎跟踪(爬取)页面上的链接;相反 nofollow
<meta name="robots" content="index, follow" />
自适应¶
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
a
标签的 ref
属性¶
- rel="UGC" 应适用于用户生成的链接。例如,博客评论、论坛帖子
- rel="sponsored" 应适用于广告、赞助、或一些其他补偿协议的链接
<a ref=""></a>
注意:关于 X 卡以及 Open Graph,建议使用到的图片存放在网站根目录,并且网站的 TLS 最高版本建议为 1.2,1.2 以上疑似影响效果显示。
文件¶
站点地图 sitemap.xml¶
robots.txt¶
IndexNow¶
Favicon icon¶
站长平台和平台工具¶
站长工具¶
SEO 工具¶
关键词和趋势工具¶
文档和其他工具¶
- SEO 初学者指南 By ahrefs
- Ahrefs 博客
- Google 搜索中心 | Google for Developers
- Bing Webmaster Tools 必应网站站长指南
- Txtify 文本转换工具 - 用来检测一段文字的字符数量
- Merkle SEO hreflang 页面元素和站点地图 标记测试工具
- Aleyda Solis 的 hreflang 页面元素和站点地图 标记生成器工具
产品项目提交和推广¶
完成项目后,可以将项目提交到产品目录网站里。有的平台无条件免费的,也有平台是提交免费,想快速发布的话就要付费,也可以选择数月不等的周期免费发布出来。