MICRODATA ========= Overview -------- Microdata allows you to layer lists of name-value pairs on top of Web pages, so that JavaScript scripts, search engines, and other tools can extract that data from the page directly, instead of you having to provide it in a separate file, or them having to use screen scraping. Note: The URLs used in this study are completely arbitrary and do not really mean anything. Please don't be tempted to actually visit those pages, that won't be helpful! Data structures --------------- The data structures that can be described using metadata are lists of name-value pairs. Name: Value Foo: Bar Each value can be one of several types: strings, URLs, datetimes, or further nested lists of name-value pairs: Strings: Just some regular text URLs: http://example.com/ Datetimes: 2009-04-01T14:23-08:00 Lists of name-value pairs: Name: Value Foo: Bar Each name can have multiple values: Color: Blue Color: Green Color: http://example.com/yellow Syntax ------ To declare a list of name-value pairs in HTML, put the "item" attribute on an element:
This makes the
element declare a list of name-value pairs, though it is an empty list. The name-value pairs are then put inside this element. It can be any element, not just
:

To declare a name in a name-value pair, you use the itemprop="" attribute on elements inside the one with the item="" attribute: itemprop="Name" Declaring a value is done in various ways depending on what the value is. For URLs, use , , or : ... For datetimes, use