Microdata (HTML): Difference between revisions

Content deleted Content added
No edit summary
Tags: review edit Visual edit Mobile edit Mobile web edit
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 23:
The following HTML5 markup may be found on a typical “About” page containing information about a person:
 
<sourcesyntaxhighlight lang=html5>
<section> Hello, my name is John Doe, I am a graduate research assistant at
the University of Dreams.
Line 29:
You can visit my homepage at <a href="http://www.JohnnyD.com">www.JohnnyD.com</a>.
I live at 1234 Peach Drive, Warner Robins, Georgia.</section>
</syntaxhighlight>
</source>
 
Here is the same markup with added [[Schema.org]]<ref>{{cite web|url=http://schema.org/docs/documents.html |title=Documentation |publisher=Schema.org |date= |accessdate=2016-06-30}}</ref><ref>{{cite web|url=http://schema.org/docs/full.html |title=Type Hierarchy |publisher=Schema.org |date= |accessdate=2016-06-30}}</ref><ref>{{Cite web |url=http://schema.rdfs.org/all.ttl |title=Schema.org Turtle RDFS Schema |access-date=2013-05-29 |archive-url=https://web.archive.org/web/20140921103224/http://schema.rdfs.org/all.ttl |archive-date=2014-09-21 |url-status=dead }}</ref> Microdata:
 
<sourcesyntaxhighlight lang=html5>
<section itemscope itemtype="http://schema.org/Person">
Hello, my name is
Line 52:
</section>
</section>
</syntaxhighlight>
</source>
 
As the above example shows, Microdata items can be nested. In this case, an item of type http://schema.org/PostalAddress is nested inside an item of type http://schema.org/Person.