有什么办法可以结合 <meta />
和<time />
一起?它们都有必要吗?
<div itemscope itemtype="http://schema.org/Event">
<a itemprop="url" href="nba-miami-philidelphia-game3.html" itemprop="name">
Miami Heat at Philadelphia 76ers
</a>
<meta itemprop="startDate" content="2016-04-21T20:00">
<time datetime="2016-04-21T20:00"></time>
Thu, 04/21/16
8:00 p.m.
</div>
最佳答案
你为什么不这样做:
<time itemprop="startDate" datetime="2016-04-21T20:00">
Thu, 04/21/16
8:00 p.m.</time>
查看 basic syntax section of the spec 中的日期示例.
关于schema.org - HTML5 时间和架构 startDate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11459490/