itemtype 必须与 itemscope 同元素、用完整 HTTPS URL 且大小写/路径/协议严格匹配,否则结构化数据失效;选错类型会导致 itemprop 被忽略,嵌套需显式声明子类型。

itemtype 告诉解析器“这是什么类型的东西”
它本身不改变页面显示,也不触发任何 JS 行为,唯一作用是配合 itemscope 向搜索引擎、爬虫或结构化数据工具声明:这个容器描述的是哪一类实体。比如 https://schema.org/Organization 表示“这是一个组织”,https://schema.org/Brand 表示“这是一个品牌名称标识”。没有它,整个 itemscope 块就只是个普通 HTML 容器,不会被识别为结构化数据。
itemtype 必须是完整 HTTPS URL,不能缩写或省略
常见错误包括:itemtype="Brand"、itemtype="https://schema.org/brand"(小写)、itemtype="http://schema.org/Organization"(HTTP 协议)、itemtype="https://schema.org/Organization/"(末尾斜杠)。这些写法都会导致 Google Rich Results Test 直接报错或静默丢弃整块数据。
必须严格使用:
-
https://schema.org/Organization✅ -
https://schema.org/LocalBusiness✅ -
https://schema.org/Brand✅
大小写、协议、路径、结尾斜杠,全部敏感。2026 年起所有主流工具已完全停用 http://data-vocabulary.org/ 等旧词汇表。
立即学习“前端免费学习笔记(深入)”;
itemtype 必须和 itemscope 写在同一元素上
分离写法等于没写。例如以下全是无效的:
-
<div itemscope><section itemtype="https://schema.org/Article">...</section></div>(itemtype没和itemscope同级) -
<p itemtype="https://schema.org/Person">张三</p>(缺itemscope) -
<div itemprop="author"><div itemscope itemtype="https://schema.org/Person">张三</div></div>(itemprop未绑定到itemscope元素)
正确写法只有一种:<div itemscope itemtype="https://schema.org/Person"><p itemprop="name">张三</p></div>
选错 itemtype 会导致 itemprop 失效
Schema.org 对每个类型定义了合法属性集。itemprop="telephone" 在 https://schema.org/Person 和 https://schema.org/Organization 下有效,但在 https://schema.org/Article 下会被忽略——因为 Article 类型根本不包含 telephone 属性。
查属性前务必确认两点:
- 当前要描述的主体是否真的属于该
itemtype(比如门店优先用https://schema.org/LocalBusiness,不是泛泛的Organization) - 所用
itemprop是否列在该类型页面的 “Properties” 表格中,且 “Expected Type” 匹配(例如logo要求是ImageObject或 URL,不能是纯文本)
嵌套结构尤其容易漏掉子类型声明,比如地址必须用 <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">,而不是直接写一段文字。</div>



















