HTML5 คือการแก้ไขสำคัญครั้งที่ 5 ของ HTML ซึ่งเป็นภาษาหลักของ World Wide Web ข้อกําหนดของ HTML5 ประกอบด้วยคําอธิบาย Microdata ซึ่งเป็นมาตรฐานมาร์กอัปใหม่สําหรับการระบุ Structured Information ในหน้าเว็บ
วันนี้เรายินดีที่จะประกาศการรองรับ Microdata เพื่อใช้ในตัวอย่างข้อมูลริชมีเดีย นอกเหนือจากการรองรับ Microformat และ RDFa ที่มีอยู่แล้ว เมื่อใช้มาร์กอัป Microdata ในหน้าเว็บ คุณสามารถระบุข้อมูลเกี่ยวกับรีวิวโปรไฟล์บุคคล หรือกิจกรรมในหน้าเว็บที่ Google อาจใช้เพื่อปรับปรุงการนําเสนอหน้าเว็บของคุณในผลการค้นหาของ Google
ต่อไปนี้เป็นบล็อก HTML แบบง่ายที่แสดงส่วนรีวิวของ "L'Amourita Pizza"
:
<div>
<h1>Review: L'Amourita Pizza</h1>
Written by Bob Smith
Jan 15, 2010
Rated <b>4.5</b> - Excellent
</div>
ต่อไปนี้เป็น HTML เดียวกันที่เพิ่ม Microdata เพื่อระบุร้านอาหารที่มีการรีวิว ผู้เขียนและวันที่รีวิว และคะแนน
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],[],[[["This blog post is outdated; refer to the current documentation on structured data for the latest information."],["Google now supports microdata for rich snippets, alongside existing support for microformats and RDFa."],["Microdata allows you to specify structured information like reviews, profiles, and events within web pages, which Google may use to enhance search result presentation."],["Microdata uses attributes like `itemscope`, `itemtype`, and `itemprop` to easily add markup to web pages for specifying structured data."],["While rich snippets are not guaranteed, using microdata enables Google to better understand and potentially enhance the display of your content in search results."]]],["Microdata, a new markup standard within HTML5, enables the specification of structured information on web pages. This allows users to add markup to their web pages using attributes such as `itemscope`, `itemtype`, and `itemprop`, to define and describe items like reviews, people profiles, or events. Google supports microdata for rich snippets and offers a testing tool to validate the markup. This information helps Google enhance the presentation of pages in search results.\n"]]