11.1 The Syntax of Microdata 263
11.1 The Syntax of Microdata
If we take the text at the beginning of the chapter and add a few links, an image,
and the signature of the blog author, we end up with a complete, fictitious blog
entry, as shown in Figure 11.1. It will accompany us through an explanation of
the microdata syntax.
Figure 11.1 Screen shot of fictitious blog entry about Pat Metheny’s Orchestrion Tour
11.1.1 The Attributes “itemscope” and ”itemprop”
We first need to define the area relevant for microdata. Structuring elements are
suitable, as are container elements, such as div or p. In our example, we chose
an article element, which encloses the entire blog entry. The required attribute
for defining the scope starts with item—just as the other four microdata attri-
butes—has the type boolean, and is called, rather logically, itemscope:
...
The itemscope defines a new group of name-value pairs, also called items in
the specification. The corresponding values are supplied by itemprop attributes,