마이크로데이터
마이크로데이터는 HTML 문서에 컴퓨터에서 읽을 수 있는 데이터를 삽입하기 위한 사양입니다. 마이크로데이터는 어휘에 따라 정의된 이름-값 쌍 (items
라고 함)으로 구성됩니다. schema.org에서 흔히 사용되는 마크업 어휘 모음을 제공합니다.
기본 문법에는 항목을 정의하는 itemscope
속성과 항목의 속성 중 하나를 설명하는 itemprop
속성이 포함됩니다. 유형은 itemtype
속성을 사용하여 지정되며 선택한 어휘집에 정의된 값을 가정할 수 있습니다. 예를 들어 schema.org
는 http://schema.org/Person
또는 http://schema.org/PostalAddress
와 같은 유형을 정의합니다.
다음 예 (위키백과)에서는 마이크로데이터를 사용하여 사람을 설명하는 방법을 보여줍니다.
<section itemscope itemtype="http://schema.org/Person">
Hello, my name is
<span itemprop="name">John Doe</span>,
I am a
<span itemprop="jobTitle">Graduate research assistant</span>
at the
<span itemprop="affiliation">University of Dreams</span>
My friends call me
<span itemprop="additionalName">Johnny</span>
You can visit my homepage at
<a href="http://www.example.com.com" itemprop="url">www.example.com</a>
<section itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
I live at
<span itemprop="streetAddress">1234 Peach Drive</span>
<span itemprop="addressLocality">Warner Robins</span>
<span itemprop="addressRegion">Georgia</span>.
</section>
</section>
스키마 검사기 도구를 사용하여 마크업을 디버그하고 지원되는 스키마에 대해 유효성을 검사합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-12-21(UTC)
[null,null,["최종 업데이트: 2024-12-21(UTC)"],[[["Microdata is an HTML specification used to embed machine-readable data in webpages using name-value pairs called `items` which are defined within a vocabulary."],["Schema.org provides commonly used vocabularies to structure the data, and items are marked up with attributes like `itemscope`, `itemprop`, and `itemtype` for machines to understand."],["The syntax involves defining an `item` and its `properties` using these attributes, and specifying a vocabulary such as schema.org for types like `Person` or `PostalAddress`."],["You can validate your Microdata implementation using the Schema Validator tool to ensure correctness and compatibility with supported schemas."]]],["Microdata embeds machine-readable data in HTML using name-value pairs called items. `itemscope` defines an item, `itemprop` describes its properties, and `itemtype` specifies its type from a vocabulary (e.g., schema.org). For example, the `Person` type can include properties like `name`, `jobTitle`, and `address`. The Schema Validator tool is available for debugging and validating microdata markup against supported schemas.\n"]]