2016-08-07 33 views
0

我有這個我的網頁上:人結構化數據缺失名稱?

<div itemscope itemtype="http://schema.org/Person"> 
    <a href="john.html" itemprop="url">John W</a> 
</div> 
<div itemscope itemtype="http://schema.org/Person"> 
    <a href="chloe_m.html" itemprop="url">Chloe M</a> 
</div> 
... 

但是我的所有項目都有錯誤:缺少:命名

有什麼不對?

回答

1

我想你只需要與itemprop="name"添加元素,像這樣:

<div itemscope itemtype="http://schema.org/Person"> 
    <a href="john.html" itemprop="url"> 
     <span itemprop="name">John W</span> 
    </a> 
</div> 
<div itemscope itemtype="http://schema.org/Person"> 
    <a href="chloe_m.html" itemprop="url"> 
     <span itemprop="name">Chloe M</span> 
    </a> 
</div> 

this page

+0

底部有一個看看微觀的例子謝謝您的回答!我會試試看! –