itemtype必须配合itemscope使用,作者信息需用person类型并嵌套在article内,通过itemprop="author"关联,且name和image为生效关键字段。

itemtype 属性必须配合 itemscope 使用才有效
单独写 itemtype 没有意义,浏览器和搜索引擎根本不会识别。它只是 Schema.org 类型的 URL 声明,必须包裹在带有 itemscope 的元素里,才能形成一个完整的结构化数据实体。
常见错误是只加 itemtype 却漏掉 itemscope,结果在 Google Rich Results Test 里完全看不到作者信息解析。
-
itemscope表示“这里是一个独立的数据对象” -
itemtype="https://schema.org/Person"表示“这个对象属于 Person 类型” - 作者信息(如姓名、头像)要用
itemprop标注在子元素上
作者必须用 Person 类型,不能用 Organization 或其他类型
即使文章是机构账号发布的,只要署名是具体的人(哪怕只是笔名),itemtype 就得用 https://schema.org/Person。用 Organization 会导致作者字段被忽略——Google 明确要求作者必须是 Person 实体。
Schema.org 规范里,author 属性的预期值就是 Person 或 Organization,但实际索引中,只有 Person 能触发作者富媒体展示(比如搜索结果里的头像和名字)。
- 正确:
itemtype="https://schema.org/Person" - 错误:
itemtype="https://schema.org/Article"(这是文章本身的类型) - 错误:
itemtype="https://schema.org/Thing"(太泛,不被识别为作者)
嵌套在 article 标签下才能被正确关联
作者信息不是孤立存在的,必须作为 article 元素的子级,并通过 itemprop="author" 显式声明归属关系。否则搜索引擎无法判断“这个人是谁的作者”。
典型结构是:外层 <article itemscope itemtype="https://schema.org/Article"></article> → 内层 <div itemscope itemtype="https://schema.org/Person" itemprop="author">。
<ul>
<li>缺 <code>itemprop="author":Person 实体会被识别,但不会和文章绑定
<header></header> 外或 <footer></footer> 末尾:仍可工作,但语义位置弱,部分爬虫可能降权解析<div itemscope itemtype="https://schema.org/Person" itemprop="author"> 并列即可
<h3>name 和 image 是作者标记生效的关键字段</h3>
<p>Google 对作者富媒体的最低要求只有两个:<code>name(必填)和 image(强烈建议)。没有 image,即使有 name,也不会显示头像;没有 name,整个作者块直接失效。
image 必须是可公开访问的绝对 URL(如 https://example.com/avatar.jpg),相对路径或 base64 图片均无效。同时,图片尺寸建议 ≥ 120×120px,否则可能被过滤。
-
<span itemprop="name">张三</span>—— 文字内容必须存在且非空 -
<link itemprop="image" href="https://example.com/author.jpg">—— 推荐用<link>而非<img>,避免干扰页面渲染 - 别加
url或sameAs:它们对作者展示无增益,反而增加出错概率
itemscope、错一个 itemprop 名称,或者 image 地址返回 404,都会导致作者信息彻底消失。真正起作用的永远是那几行紧挨着的 HTML,而不是外围的 meta 或 JSON-LD。











