Untuk menggunakan microdata ada ketentuan tertentu misalnya
harus ada script seperti itemscope, itemtype,itemid,itemprop, itemref, dll
Contoh script :
<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.JohnnyD.com"
itemprop="url">www.JohnnyD.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>
Penjelasan :
<span itemprop="name">John Doe</span>
+ menunjukan bahwa “John Doe” adalah nama
<span itemprop="jobTitle">graduate research
assistant</span>
+ Menunjukan pekerjaan
<span itemprop="affiliation">University of
Dreams</span>.
+Menunjukan lembaganya
<span itemprop="additionalName">Johnny</span>.
+Menunjukan nama panggilan atau nama lain yang sering
digunakan
<span itemprop="streetAddress">1234 Peach
Drive</span>.
+Menunjukan alamat
Dan beginilah search engine seperti google membacanya :
Item
name = John Doe
jobTitle = graduate
research assistant
affiliation =
University of Dreams
additionalName =
Johnny
address = Item(1)
Item 1
streetAddress =
1234 Peach Drive
addressLocality =
Warner Robins
addressRegion =
Georgia
source : http://en.wikipedia.org/wiki/Microdata_%28HTML%29