【发布时间】:2014-02-18 21:03:01
【问题描述】:
我在我的网页上使用 schema.org VideoObject 视频。但是,当我运行 W3C Validator 时,每个属性都会出现以下错误:
itemprop属性已指定,但该元素不是任何项目的属性。
下面显示的每个项目属性都会发生这种情况:
<div class="video-wrapper-inner" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<meta itemprop="name" content="Name of the Video" />
<meta itemprop="description" content="Description of the Video. " />
<meta itemprop="thumbnailUrl" content="../images/thumbnail.jpg" />
<meta itemprop="embedURL" content="http://player.vimeo.com/external/123456.hd.mp4?s=ddddd44ssdd43d23rf" />
<meta itemprop="duration" content="T1M10S" />
<meta itemprop="uploadDate" content="2013-12-26T08:00:00+08:00" />
<meta itemprop="transcript" content="Transcript from the video here." />
<video poster="../images/thumbnail.jpg" controls><source src="http://video file location" type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' /></video>
</div>
顺便说一下,我的网页设置如下:
<!DOCTYPE html>
<html lang="en">
我的问题是,通过 W3C 验证器的正确标记是什么。
【问题讨论】:
标签: w3c-validation microdata schema.org