w3c validation - Microdata in XHTML 1.1: there is no attribute "itemprop" -
i added microdata product pages of site. leads errors. 1 of these errors following:
there no attribute "itemprop"
the error related source code line:
<div itemprop="offers" itemscope="" itemtype="http://schema.org/offer">
my doctype follows:
<!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
how possible make page w3c compliant when keeping same doctype?
microdata can used in (x)html5.
if want use schema.org vocabulary in xhtml 1.1, use rdfa, require changing doctype to
<!doctype html public "-//w3c//dtd xhtml+rdfa 1.1//en" "http://www.w3.org/markup/dtd/xhtml-rdfa-2.dtd">
(see answer differences between microdata , rdfa.)
Comments
Post a Comment