Main » TERM » H »

HTML microdata

HTML microdata, an HTML5 specification, is used to label content to describe a specific type of information. It is machine-readable data that is embedded in HTML documents and compatible with other data formats, including RDF and JSON. The purpose of the microdata specification is to help automated programs to better understand the content of your web page.

Microdata Item Types and Properties

Microdata could include information types such as reviews, personal information or events. Each information type has its own properties. For example properties of an event include venue, starting time, name, and category. Microdata is implemented using attributes in HTML tags, typically < span > or < div > is used to assign descriptive names to properties.

The basic syntax for HTML microdata consists of a group of name-value pairs. The groups are called items, and each name-value pair is a property. The HTML microdata specification defines five attributes that can be applied to any HTML5 tag:

  • Itemscope: Indicates the element is a microdata element and its child elements are part of its microdata format.
  • Itemtype: Defines the vocabulary to be used by the microdata format.
  • Itemid: The unique identifier of the item, if defined by the microdata vocabulary.
  • Itemprop: An individual data element.
  • Itemref: Allows a microdata element to reference another element on the page to define it by either HTML id or by itemid.

Recommended Reading: Learn more about the five attributes in this Web Developer Tutorial.

The W3C HTML Microdata Specification

The syntax and code examples are available in the W3C HTML Microdata specification. The W3C HTML Working Group is the W3C working group responsible for the HTML microdata specification.







LATEST ARTICLES
Facts about Cloud Computing in 2017

The following facts and statistics capture the changing landscape of cloud computing and how service providers and customers are keeping up with... Read More »

Facts about Computer Science: Education and Jobs

The following computer science facts and statistics provide a quick introduction to the changing trends in education and related careers. Read More »

Texting & Chat Abbreviations

From A3 to ZZZ this guide lists 1,500 text message and online chat abbreviations to help you translate and understand today's texting lingo. Read More »

STUDY GUIDES
The Five Generations of Computers

Learn about each of the five generations of computers and major technology developments that have led to the computing devices that we use... Read More »

Computer Architecture Study Guide

Computer architecture provides an introduction to system design basics for most computer science students. Read More »

Network Fundamentals Study Guide

Networking fundamentals teaches the building blocks of modern network design. Learn different types of networks, concepts, architecture and... Read More »