schema.org - HTML5 时间和架构 startDate

标签 schema.org html

有什么办法可以结合 <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/

相关文章:

schema.org - 使用 schema.org 定义本地企业提供(销售)的服务

schema.org - 不同 Schema.org 类型的几个 JSON-LD 脚本 : why they're combined into one type when testing with Google SDTT?

php - 如何在选项中放入多个值并在mysql中处理它

javascript - 如何设置 Summernote 编辑器的百分比宽度

php - HTTP ://localhost/appears before path

localization - 多语言网站的 Schema.org : filling Corporation and WebSite things right

seo - 微数据还是 JSON-LD?我很困惑

javascript - 定义 JSON-LD @context 以连接/拆分值?

css - 在水平选项卡中与徽章右拉斗争(仅限 IE9)

html - 网络上以像素为单位的名片高度和宽度?