【发布时间】:2025-12-24 12:00:11
【问题描述】:
我正在尝试在我的博客列表页面上标记文章部分 (articleSection)。每个文章部分还有一个链接可以转到该部分。
这些语法中哪一个(如果有)是正确的,因为它们在Google Structured Data Testing Tool 中产生不同的结果:
<a href="#"><span itemprop='articleSection'>section name 1</span></a>
测试工具结果:articleSection: section name 1
<span itemprop='articleSection'><a href="#">section name 2</a></span>
测试工具结果:articleSection: section name 2
<a href="#" itemprop='articleSection'>section name 3</a>
测试工具结果:articleSection: http://www.example.com/pagelocation/#
也许这很重要,也许不重要。
articleSection 属性中的链接是否有帮助? articleSection 寻找“文本”而不是 URL。
GoldStarBonus:有什么方法/优势可以将链接与文章节名称相关联?如果没有,那现在很好。
【问题讨论】:
标签: html schema.org microdata