Microdata ชนิด WebPage

ใช้สำหรับระบุว่าข้อมูลนี้เป็นหน้าเว็บ (WebPage) โดยมีคุณสมบัติที่สำคัญดังนี้
Properties ชนิด คำอธิบาย
breadcrumb Text ส่วนที่เป็นลิงค์นำทางภายในเว็บเพื่อให้ผู้ใช้เข้าใจการเชื่อมโยงตามลำดับชั้นของหน้าเว็บ
isPartOf CollectionPage URL ของรูปภาพ
mainContentOfPage WebPageElement สำหรับระบุว่าเนื้อหาในส่วนนี้เป็นเนื้อหาหลักของหน้านี้
primaryImageOfPage ImageObject tag img สำหรับรูปภาพหลักของหน้าเพจ
significantLinks URL ลิงค์โดยตรงของหน้านี้
ตัวอย่างหน้าเว็บที่ไม่มีการระบุ Microdata
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code WebPage Type without Microdata</title>
</head>
<body>
<p><a href="Movies.html">Movies</a> > <a href="SciFi.html">Science Fiction</a> > <a href="Rise-of-the-Planet-of-the-Apes.html">Rise of the Planet of the Apes</a></p>
<div>
<h1>Rise of the Planet of the Apes</h1>
<p>Director : Rupert Wyatt</p> <p>Producer : Chermin Entertainment, Twentieth Century Fox Film Corporation.</p>
<p>Key Cast : </p>
<ul>
<li>James Franco as Will Rodman</li>
<li>Freida Pinto as Caroline Aranha</li> <li>John Lithgow as Charles Rodman</li>
<li>Chelah Horsdal as Irena</li> </ul> <p>Genre : Science Fiction</p>
<p>Motion Picture Rating : MPAAA</a>
<p>Tags : Evolution Ends. Revolution Begins</p> </div>
</body>
</html>

ตัวอย่างหน้าเว็บที่มีการระบุ Microdata
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code of WebPage with Microdata</title>
<meta name="author" content="https://www.w3resource.com/authors.php"></head>
<body itemscope itemtype="http://schema.org/WebPage">
<div itemprop="breadcrumb">
<a href="Movies.html">Movies</a> >
<a href="SciFi.html">Science Fiction</a> >
<a href="Rise-of-the-Planet-of-the-Apes.html">Rise of the Planet of the Apes</a>
</div>
<div itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Rise of the Planet of the Apes</h1>
<span itemprop="description">During experiments to find a cure for Alzheimers disease, a genetically-enhanced chimpanzee uses its greater intelligence to lead other apes to freedom.</span>
<p>Director:</p>
<div itemprop="director" itemscope itemtype="http://schema.org/People">
<span itemprop="name">Rupert Wyatt</span>
</div>
<p>Actors:</p>
<div itemprop="author" itemscope itemtype="http://schema.org/People">
<span itemprop="name">Ted Elliott</span>
</div>
<div itemprop="actors" itemscope itemtype="http://schema.org/People">
<span itemprop="name">James Franco</span>,
</div>
<div itemprop="actors" itemscope itemtype="http://schema.org/People">
<span itemprop="name">Freida Pinto</span>,
</div>
<div itemprop="actors" itemscope itemtype="http://schema.org/People">
<span itemprop="name">John Lithgow</span>
</div>
<div itemprop="actors" itemscope itemtype="http://schema.org/People">
<span itemprop="name">Chelah Horsdal</span>
</div>
</div>
</body>
</html>

(ตัวอย่างจาก http://www.w3resource.com/schema.org/WebPage.php)
ผู้เขียน goragod โพสต์เมื่อ 28 ก.พ. 2556 เปิดดู 9,134 ป้ายกำกับ HTML5Microdata
^