CKTIS / HTML
itemscope — creating a microdata item
The boolean itemscope attribute creates an HTML microdata item: a group of name–value pairs. itemprop describes its properties, while optional itemtype specifies the item's types.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
itemscope | itemscope="" | itemscope="itemscope"itemscope creates a microdata item: a group of name–value pairs intended for machine processing. It can appear on any HTML element; it does not work this way on SVG elements.
It is a boolean attribute: valid forms are itemscope, itemscope="", and itemscope="itemscope". Writing itemscope="false" is invalid and still creates an item. To avoid creating it, omit the attribute.
itemprop names properties. A nested itemscope establishes a separate item; combining it with itemprop makes that item a property value of the parent item. Its internal properties do not become direct properties of the parent.
Optional itemtype supplies vocabulary types; an item without it is also allowed. Names such as name in an untyped top-level item are intended for limited, local use. itemref can identify additional elements containing properties outside the descendants.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>itemscope example</title>
<div itemscope>
<span itemprop="name">Ada</span>
</div>
</html>Result
Ada
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.