Skip to content

Embedded Structured-Data Markup

Embed machine-readable annotations in a document so compatible parsers can extract structured facts.

Version
v1 · 2026-11-14 · History
Domain-specific #
14709
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering

Core Idea

A web document can carry annotations that let a compatible parser extract structured facts from the same document that presents information to people. The annotations identify items, properties or relationships according to a convention or vocabulary. Some values come from text already displayed on the page; others are stored in attributes or separate metadata elements. A consumer must understand the relevant syntax and vocabulary to recover the intended data.[1][2][3]

Embedding does not guarantee consistency. A machine-readable attribute can become stale while visible text changes, and changing a class or other markup for presentation can affect extraction. The annotations also do not guarantee that a browser’s appearance stays unchanged: styles and scripts can depend on the same markup.

How would you explain it like I'm…

Hidden Name Tags on Pages

A web page is made for people to read. But it can also hide little labels that a computer can read, like sticky notes saying 'this is the price' or 'this is the name.' The computer has to know what the labels mean. And if someone changes the words on the page but forgets the hidden note, the note can end up wrong.

Labels Computers Can Read

Web pages can carry hidden tags that tell computer programs what things on the page mean, for example which words are a recipe's name or which number is its cooking time. Some tags point at words you can see; others keep the information tucked inside the page's code. A program can only understand the tags if it knows the labeling system being used. Because the same page serves people and programs, the two can get out of step: someone might update the visible text but forget the hidden value, or change the page's style and accidentally break what the program reads.

Machine-Readable Page Annotations

Embedded structured-data markup means adding annotations to a web document so that a program can pull out structured facts from the same page people read. The annotations mark items, their properties and relationships using an agreed syntax and vocabulary. Some values are taken from text already shown on the page; others sit in attributes or separate metadata elements that readers don't see. A consumer program has to understand both the syntax and the vocabulary to recover the intended data. Embedding the data in the page does not keep it consistent automatically: a hidden attribute can go stale when visible text changes, and editing markup for appearance can change what gets extracted or how the page looks, because styles and scripts may rely on the same markup.

 

Embedded structured-data markup annotates a web document so that a compatible parser can extract structured facts from the same document that presents content to human readers. Annotations identify items, properties and relationships according to a convention or vocabulary. Some values are taken from displayed text, while others live in attributes or in separate metadata elements. A consumer must understand both the relevant syntax and the vocabulary to recover the intended data. Co-location does not guarantee consistency: a machine-readable attribute can go stale while the visible text is updated, and changing classes or other markup for presentational reasons can alter extraction. Conversely, adding or editing annotations does not guarantee the browser's rendering stays the same, because styles and scripts can depend on the same markup.

Structural Signature

  • Host document: the HTML or other supported document carrying both presentation content and machine-readable annotations.
  • Annotation syntax: conventions for identifying the item and its properties or relationships.
  • Value source: element text, an attribute, a nested item or another value specified by the syntax.
  • Vocabulary and parser: agreed names and rules that let a consumer construct items or relations.
  • Consistency boundary: where a visible description and a separately encoded value must be kept aligned.

Geo Microformat

The legacy Geo microformat marks a WGS84 latitude and longitude with a geo root and latitude and longitude class names. In a simple form, the values are the text of the marked elements, allowing a compatible parser to extract coordinates from a page. The community specification also documents an abbr form whose title holds a machine value and a value-title form for values not displayed as coordinates. Those alternatives can require synchronization with what a reader sees. The published Geo page calls itself a draft and points readers to the later h-geo format; their class names should not be interchanged without considering the relevant parser.[1]

Microdata and RDFa

HTML Microdata uses itemscope, itemtype and itemprop to express items and their properties. Depending on the element, a property value can come from a nested item, text or an attribute such as content, href or datetime; it is not always the visible string. Its consumer must interpret the chosen item vocabulary as well as the HTML rules.[2]

RDFa uses attributes such as property, typeof and vocab to express RDF data. A literal can be taken from inline text or supplied with content; RDFa Core advises using inline text when it accurately represents the value rather than duplicating it unnecessarily. RDFa’s extracted triples and Microdata’s items have different data models even when both annotate a page.[3]

Boundaries

Annotating visible values can reduce duplication, but that benefit depends on the actual value rules and publication workflow. Separate embedded data can also be useful: COinS, for example, encodes an OpenURL context object in a span’s attribute. That is an embedded metadata pattern, but it need not annotate each visible citation field in place.[4]

A shared metadata vocabulary defines meanings; the embedding syntax says how a particular document exposes them. Neither a vocabulary nor embedded markup alone guarantees correct extraction, accessible presentation, an open license or agreement between the machine-readable and visible descriptions.

Relationships to Other Abstractions

Local relationship map for Embedded Structured-Data MarkupParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Embedded Structured-…DOMAINPrime abstraction: Representation — presupposesRepresentationPRIME

Current abstraction Embedded Structured-Data Markup Domain-specific

Parents (1) — outgoing typed relations

  • Embedded Structured-Data Markup presupposes Representation Prime

    Embedded markup requires a convention mapping structured facts to document markup.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Embedded Structured-Data Markup sits in a sparse region of the domain-specific corpus (95th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Tantek Çelik, “Geo”, microformats community draft specification. registry ↩a ↩b

[2] WHATWG, “Microdata”, HTML Standard, living standard. registry ↩a ↩b

[3] World Wide Web Consortium, RDFa Core 1.1, third edition, sections 5 and 8.3. registry ↩a ↩b

[4] Max Planck Digital Library, “Using COinS”, OpenURL metadata in HTML. registry ↩