내 웹 사이트에서 리치 스 니펫을 사용하고 있습니다. 예 : Organization
스키마를 제공하는 것을 고려하십시오.리치 스 니펫에 메타 태그를 제공해야합니까?
<meta property="name" content="something />
을 제공해야합니까, 아니면 <div property="name">something</div>
을 제공하기에 충분합니까?
내 웹 사이트에서 리치 스 니펫을 사용하고 있습니다. 예 : Organization
스키마를 제공하는 것을 고려하십시오.리치 스 니펫에 메타 태그를 제공해야합니까?
<meta property="name" content="something />
을 제공해야합니까, 아니면 <div property="name">something</div>
을 제공하기에 충분합니까?
적합하는 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.)