Microdata (HTML): Difference between revisions

Content deleted Content added
See also: Add NISO standard Z39.105 "CP/LD"
ACJ (talk | contribs)
m Sections were not appropriate in these examples, as sections require headings (h1-6) as per spec
 
(3 intermediate revisions by 3 users not shown)
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>
 
Line 66:
affiliation = University of Dreams
additionalName = Johnny
url = <nowiki>http://www.example.com/~JohnnyD{{Dead link|date=August 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</nowiki>
address = Item(1)
Item 1