根据 Schema.org 定义创建搜索引擎优化的结构化数据
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "示例工具",
"description": "这是一个示例工具的描述",
"url": "https://example.com/tool"
}
JSON-LD 是 Google 推荐的格式
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "示例工具",
"description": "这是一个示例工具的描述",
"url": "https://example.com/tool"
}
</script>
微数据格式可以直接添加到 HTML 元素中
<div itemscope itemtype="https://schema.org/WebApplication"> <h1 itemprop="name">示例工具</h1> <p itemprop="description">这是一个示例工具的描述</p> <a itemprop="url" href="https://example.com/tool">查看工具</a> </div>
结构化数据帮助搜索引擎更好地理解您的内容,可能获得富媒体搜索结果展示,提高点击率。
对于在线工具,推荐使用 WebApplication 类型,这是最适合工具类网站的结构化数据类型。
确保提供准确完整的信息,使用规范的URL,定期更新内容以保持结构化数据的时效性。
生成结构化数据后,务必使用Google的富媒体结果测试工具验证代码的正确性。