CKTIS / HTML
itemtype — microdata item types
The itemtype attribute declares a microdata item's types using absolute URLs. It requires itemscope on the same HTML element.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
itemtype="absolute-type-URL [absolute-type-URL ...]" (requires itemscope on the same element)itemtype declares the types of a microdata item created by itemscope. A type selects the vocabulary that gives meaning to itemprop property names. It does not identify a particular object — itemid can serve that role when the vocabulary permits it.
The value must contain at least one valid absolute URL. Separate multiple types with ASCII whitespace; duplicates are forbidden and order does not matter. All types must be defined in applicable specifications and use the same vocabulary. Relative URLs and an empty value are invalid.
Do not specify itemtype without itemscope on the same element. A missing attribute, or no tokens after parsing, means the item has no explicit item types. A type URL is an opaque identifier, not a resource-fetching instruction; browsers must not fetch or deconstruct unknown type identifiers to determine processing.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Microdata example</title>
<div itemscope itemtype="http://n.whatwg.org/work">
<a itemprop="work" href="https://example.com/guide">Guide</a>
<link itemprop="license" href="https://creativecommons.org/licenses/by/4.0/">
</div>
</html>Result
Guide
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.