G
Gordon Freeman
I was just looking at a semantic markup scheme proposed by the major search
engines at schema.org, but ISTM there is a problem that if you insert the
tags they propose (see example below) then your pages will fail the W3C
validation since the attributes itemscope, itemtype, etc are not
recognised.
I note however that there are a number of other markup schemes around, some
of which reuse existing attributes like "class" or "rel" to avoid
validation problems. Of course this could lead to other problems depending
on how you name your CSS classes!
So I wondered if anyone is using semantic markup much and if so which type
and whether it leads to better search engine listings or other benefits?
schema.org example:
<div itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<div itemprop="director" itemscope itemtype="http://schema.org/Person">
Director: <span itemprop="name">James Cameron</span> (born <span
itemprop="birthDate">August 16, 1954</span>)
</div>
<span itemprop="genre">Science fiction</span>
<a href="../movies/avatar-theatrical-trailer.html"
itemprop="trailer">Trailer</a>
</div>
engines at schema.org, but ISTM there is a problem that if you insert the
tags they propose (see example below) then your pages will fail the W3C
validation since the attributes itemscope, itemtype, etc are not
recognised.
I note however that there are a number of other markup schemes around, some
of which reuse existing attributes like "class" or "rel" to avoid
validation problems. Of course this could lead to other problems depending
on how you name your CSS classes!
So I wondered if anyone is using semantic markup much and if so which type
and whether it leads to better search engine listings or other benefits?
schema.org example:
<div itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<div itemprop="director" itemscope itemtype="http://schema.org/Person">
Director: <span itemprop="name">James Cameron</span> (born <span
itemprop="birthDate">August 16, 1954</span>)
</div>
<span itemprop="genre">Science fiction</span>
<a href="../movies/avatar-theatrical-trailer.html"
itemprop="trailer">Trailer</a>
</div>