Microdata (HTML): Difference between revisions

Content deleted Content added
ACJ (talk | contribs)
m Sections were not appropriate in these examples, as sections require headings (h1-6) as per spec
 
(7 intermediate revisions by 7 users not shown)
Line 2:
{{Other uses|Microdata (disambiguation)}}
{{HTML}}
'''Microdata''' is a [[WHATWG]] [[HTML]] specification used to nest [[metadata]] within existing content on web pages.<ref name="WHATWG"/> [[Search engines]], [[web crawlers]], and [[Web browser|browsers]] can extract and process Microdata from a web page and use it to provide a richer browsing experience for users. Search engines benefit greatly from direct access to this structured dataMicrodata because it allows them to understand the information on web pages and provide more relevant [[Search engine results page|results]] to users.<ref>{{cite web|url=http://www.lyquix.com/blog-and-news/microdata-the-future-of-search-engine-relevance-and-search-engine-optimization-seo |title=MicroData - The Future of Search Engine Relevance and Optimization (SEO) |publisher=Lyquix.com |access-date=2016-06-30}}</ref><ref>Schema.org http://schema.org/</ref> Microdata uses a supporting vocabulary to describe an item and name-value pairs to assign values to its properties.<ref name="DIVE"/> Microdata is an attempt to provide a simpler way of annotating [[HTML element]]s with machine-readable tags than the similar approaches of using [[RDFa]] and [[microformat]]s.
 
In 2013, because the W3C HTML Working Group failed to find someone to serve as an editor for the '''Microdata HTML''' specification, its development was terminated with a 'Note'.<ref>{{cite mailing list|url=https://lists.w3.org/Archives/Public/public-html-admin/2013Oct/0018.html |title=WG Decision to publish HTML Microdata as a WG Note |mailing-list=public-html-admin@w3.org |date=2 Oct 2013 |first=Paul |last=Cotton |access-date=2016-06-30}}</ref><ref>{{cite web|url=http://www.w3.org/TR/microdata/ |title=HTML Microdata |publisher=W3.org |date=23 June 2014 |access-date=2016-06-30}}</ref> However, since that time, two new editors were selected, and five newer versions of the working draft have been published,<ref>{{Cite web|url=https://www.w3.org/TR/2017/WD-microdata-20170504/|title=HTML Microdata W3C First Public Working Draft 04 May 2017|website=World Wide Web Consortium (W3C)|access-date=2017-09-06}}</ref><ref>{{Cite web|url=https://www.w3.org/TR/2017/WD-microdata-20170626/|title=HTML Microdata W3C Working Draft 26 June 2017|website=World Wide Web Consortium (W3C)|access-date=2017-09-06}}</ref><ref>{{Cite web|url=https://www.w3.org/TR/2017/WD-microdata-20171009/|title=HTML Microdata W3C Working Draft 09 October 2017|date=9 October 2017|website=World Wide Web Consortium (W3C)|access-date=16 March 2018}}</ref><ref name=":0">{{Cite web|url=https://www.w3.org/TR/2017/WD-microdata-20171010/|title=HTML Microdata W3C Working Draft 10 October 2017|date=10 October 2017|website=World Wide Web Consortium (W3C)|access-date=16 March 2018}}</ref> the most recent being Working Draft 26 April 2018.<ref name=":0" />
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
Line 85:
* [[RDFa Lite]]
* [[JSON-LD]]
* [[CP/LD|CP/LD (Content Profile/Linked Document)]]
* [[Semantic HTML]]
* [[Semantic social network]]