Search This Blog

Friday, September 21, 2018

How to use microdata to describe an entity

The following example (from Wikipedia) shows how to use microdata to describe a person:
<section itemscope itemtype="">
  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="" itemprop="url"></a>