2016-07-18 14 views

답변

1

적합하는 RDFa를 파서가 전체 문서를 구문 분석하고 요소가 head 또는 body에 있다면, 계정에 상관없이 모든 RDFa에 문을에 상관없이 IT는 meta 또는 div 요소의 경우.

이 세 조각 같은 RDF를 생성한다 :

<html> 
    <head typeof="schema:Organization"> 
    <title>Example 1: meta in the head</title> 
    <meta property="schema:name" content="Foobar" /> 
    </head> 
    <body> 
    </body> 
</html> 
<html> 
    <head> 
    <title>Example 2: meta in the body</title> 
    </head> 
    <body typeof="schema:Organization"> 
    <meta property="schema:name" content="Foobar" /> 
    </body> 
</html> 
<html> 
    <head> 
    <title>Example 3: div in the body</title> 
    </head> 
    <body typeof="schema:Organization"> 
    <div property="schema:name">Foobar</div> 
    </body> 
</html> 

는 (구글의 구조화 된 데이터 테스트 도구는 자주하지만, 몇 가지 단점을 가지고, 그것은 반드시 RDFa를 모든 시간을 준수하지 않을 수 있습니다. 예를 들어, Google에서는 html 요소에 지정된 유형을 인식하지 못하는 것 같습니다 .Google의 리치 스 니펫/카드에 관심이있는 경우 SDTT에서 마크 업을 확인하여 데이터가 Google에 해석되는 방식을 확인하기 만하면됩니다. 출력의 경우, 아마도 f ine.)