Microdata (HTML): Difference between revisions

Content deleted Content added
Reverting edit(s) by Idk51627930 (talk) to rev. 1227151305 by Cedar101: non-constructive (RW 16.1)
ACJ (talk | contribs)
m Sections were not appropriate in these examples, as sections require headings (h1-6) as per spec
 
Line 26:
 
<syntaxhighlight lang="html">
<sectiondiv> Hello, my name is John Doe, I am a graduate research assistant at
the University of Dreams.
My friends call me Johnny.
You can visit my homepage at <a href="http://www.example.com/~JohnnyD">www.example.com/~JohnnyD</a>.
I live at 1234 Peach Drive, Warner Robins, Georgia.</sectiondiv>
</syntaxhighlight>
 
Line 36:
 
<syntaxhighlight lang="html">
<sectiondiv itemscope itemtype="http://schema.org/Person">
Hello, my name is
<span itemprop="name">John Doe</span>,
Line 47:
You can visit my homepage at
<a href="http://www.example.com/~JohnnyD" itemprop="url">www.example.com/~JohnnyD</a>.
<sectiondiv 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>.
</sectiondiv>
</sectiondiv>
</syntaxhighlight>