将微数据添加到我的页面后,我收到了来自 W3C 验证器的许多错误,抱怨itemprop
:
没有属性“
itemprop
”
从这样的代码:
<p itemprop="description">...</p>
这是我的 DOCTYPE 和html
标签
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2008/fbml">
如何修复验证器错误?
ps 以前我也有验证器错误itemscope
。但是在我将其更改为itemscope="itemscope"
之后,错误就解决了。