56
a URL, but you probably guessed that.) What I mean is that the
u r r l
property is loosely
defined. e property can be any sort of URL that you want to associate with a Person: a
weblog, a photo gallery, or a profile on another site like Facebook or Twier.
e other important thing to note here is that a single Person can have multiple
u r r l
properties. Tenically, any property can appear more than once, but until now, we haven’t
taken advantage of that. For example, you could have two
p h h o o t o
properties, ea pointing to
a different image URL. Here, I want to list four different URLs: my weblog, my Google
profile page, my user profile on Reddit, and my Twier account. In HTML, that’s a list of
links: four
< a >
elements, ea in their own
< l i >
element. In microdata, ea
< a >
element
gets an
i t t e e m p r r o o p ="u r l "
aribute.
< h 1 > > M M y Di i g i t t a a l Fo o o t p p r r i n t s s < < / h 1 1 >
< u l >
< l i > > < < a h h r r e f ="h t t t p p : / / / d d i v e i i n n t o m m a a r k . . o o r g / / "
i t e m m p p r o p p ="u u r r l l "> we b l o o g g < / a a > > < / l l i i >
< l i > > < < a h h r r e f ="h t t t p p : / / / www. . g g o o o g l l e e . c o o m m / p r r o o f i l l e e s / p p i i l g r r i i m "
i t e m m p p r o p p ="u u r r l l "> Go o g l l e e p p r r o o f i l l e e < / a > > < < / l i i >
< l i > > < < a h h r r e f ="h t t t p p : / / / www. . r r e e d d i i t t . c o o m m / u s s e e r / M M a a r k P P i i l g r r i i m "
i t e m m p p r o p p ="u u r r l l "> Re d d i i t t . c o o m m p p r r o o f i l e e < < / a > > < < / l i i >
< l i > > < < a h h r r e f ="h t t t p p : / / / www. . t t wi i t t t e e r . c c o o m / d d i i v e i i n n t o m m a a r k "
i t e m m p p r o p p ="u u r r l l "> Twi t t t e e r < / / a a > < / / l l i >
< / u l l >
According to the
HTML5 microdata data model,
< a a >
elements have special processing. e
microdata property value is the
h r r e f
aribute, not the ild text content. e text of ea
link is actually ignored by a microdata processor. us, in English, this says “is person has
a URL at
h t t t p : : / / / d i i v v e i n n t t o m a a r r k . o o r r g /
. is person has another URL at
h t t p p : : / / www. g g o o o g l l e e . c o o m m / p r o o f f i l e e s s / p i i l l g r i i m
. is person has another URL at
h t t p p : : / / www. r r e e d d i i t t . c o o m m / u s e e r r / M a a r r k P i i l l g r i i m
. is person has another URL at
h t t p p : : / / www. t t wi i t t t e e r . c c o o m / d i i v v e i n n t t o m a a r r k
.”
INTRODUCING GOOGLE RICH SNIPPETS
INTRODUCING GOOGLE RICH SNIPPETS
I want to step ba for just a moment and ask, “Why are we doing this?” Are we adding
diveintohtml5.org
“DISTRIBUTED,” “EXTENSIBILITY,” & OTHER FANCY WORDS