2
Google建議使用帶有div標記和span標記的屬性itemscope。 它們可以與HTML 5標籤一起使用嗎?Google微格式和itemscope標記
<section id="product" itemscope itemtype="http://data-vocabulary.org/Product">
....
</section>
Google建議使用帶有div標記和span標記的屬性itemscope。 它們可以與HTML 5標籤一起使用嗎?Google微格式和itemscope標記
<section id="product" itemscope itemtype="http://data-vocabulary.org/Product">
....
</section>
是的。在示例中,The specs明確使用<section>
標籤。除了<div>
和<span>
以外,他們還使用其他標籤。
<section itemscope itemtype="http://example.org/animals#cat">
<h1 itemprop="name">Hedral</h1>
<p itemprop="desc">Hedral is a male american domestic
shorthair, with a fluffy black fur with white paws and belly.</p>
<img itemprop="img" src="hedral.jpeg" alt="" title="Hedral, age 18 months">
</section>