2016-07-15 7 views

답변

1

(itemprop)을 가지고 각 속성 항목에 속하는 :으로 다음에 나중에 그런

<html itemprop="mainEntity" itemscope itemtype="http://schema.org/Article" lang="en"> 

:

Error: The itemprop attribute was specified, but the element is not a property of any item.

이 시작 마크 업하는 방법입니다 (itemscope). 오류 메시지는 사용자에게 해당되지 않는 속성이 있음을 알려줍니다.

mainEntity 속성이 항목에 속한 것 같지 않습니다. 당신은 아마 사용하려는 WebPage :

<html itemscope itemtype="http://schema.org/WebPage" lang="en"> 
    <head> 
    <title>…</title> 
    </head> 
    <body> 
    <article itemprop="mainEntity" itemscope itemtype="http://schema.org/Article"> 
    </article> 
    </body> 
</html> 

mainEntity은 역 특성, mainEntityOfPage이 있기 때문에 당신이 WebPage을 위해 다른 속성이없는 경우에, 당신은 또한 감각을 만들 수있는 다른 구조를 사용할 수 있습니다

<html itemscope itemtype="http://schema.org/Article" lang="en"> 
    <head> 
    <title>…</title> 
    <link itemprop="mainEntityOfPage" href="the-URL-of-your-page" /> 
    </head> 
    <body> 
    </body> 
</html>