# RDFa

> RDFa (Resource Description Framework in Attributes) adds machine-readable data to HTML tags. See the five RDFa Lite attributes and what Google recommends.

Canonical: https://scaplet.com/glossary/rdfa

Glossary Glossary · RDFa

RDFa (Resource Description Framework in Attributes) adds machine-readable data to HTML tags. See the five RDFa Lite attributes and what Google recommends.

3 min

read

3

sources

Oct 21, 2026

updated

Scaplet Editorial Team

author

In one line

RDFa (Resource Description Framework in Attributes) is a W3C technique that adds machine-readable data to HTML through tag attributes. Google supports RDFa for structured data, but recommends JSON-LD when your site's setup allows it. Keep RDFa if your CMS or theme already outputs it correctly, and match the markup to visible content.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Frdfa%20(%22RDFa%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Frdfa%20(%22RDFa%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Frdfa%20(%22RDFa%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Frdfa%20(%22RDFa%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [What RDFa is 01](#what-rdfa-is)
2. [The five RDFa Lite attributes 02](#the-five-rdfa-lite-attributes)
3. [RDFa, Microdata or JSON-LD? 03](#rdfa-microdata-or-json-ld)
4. [Using it with Google 04](#using-it-with-google)

_01_Explained

## What RDFa is

The W3C RDFa 1.1 Primer describes RDFa as "a technique that allows just that": adding [structured data](/glossary/structured-data) to HTML pages directly. It "provides a set of markup attributes to augment the visual information on the Web with machine-readable hints."

Google defines RDFa as "An HTML5 extension that supports linked data by introducing HTML tag attributes that correspond to the user-visible content that you want to describe for search engines." Like [Microdata](/glossary/microdata), it lives inside your visible markup. [JSON-LD](/glossary/json-ld) sits in a separate script block.

_02_At a glance

## The five RDFa Lite attributes

RDFa Lite is a small subset of RDFa that W3C says works for most day-to-day needs. It has five attributes, and the W3C says it is fully upward compatible with the complete RDFa 1.1 attribute set.

Attribute

### `vocab`

What it does

Names the vocabulary of terms you will use, such as `http://schema.org/`

Attribute

### `typeof`

What it does

States the type of the [thing](/glossary/entity) described, such as `Person`

Attribute

### `property`

What it does

Marks which property a piece of text or a link provides

Attribute

### `resource`

What it does

Gives the thing an identifier, like an `id` for described things

Attribute

### `prefix`

What it does

Declares short names for more than one vocabulary

This is W3C's own RDFa Lite example, marking up a name, a phone number and a web page with [schema.org](/glossary/schema-markup) terms:

RDFa Lite with schema.org

```
<p vocab="http://schema.org/" typeof="Person"> My name is <span property="name">Manu Sporny</span> and you can give me a ring via <span property="telephone">1-800-555-0199</span> or visit <a property="url" href="http://manu.sporny.org/">my homepage</a>. </p>
```

_03_At a glance

## RDFa, Microdata or JSON-LD?

### Where it lives

RDFa

Attributes on visible HTML

Microdata

Attributes on visible HTML

JSON-LD

A `<script>` block

### Google's [position](/glossary/average-position)

RDFa

Supported

Microdata

Supported

JSON-LD

Recommended when your setup allows it

### Best fit

RDFa

Existing RDFa output you don't want to rebuild

Microdata

Existing Microdata output

JSON-LD

New work, and markup managed at scale

Google says JSON-LD is "the easiest solution for website owners to implement and maintain at scale (in other words, less prone to user errors)." It also notes RDFa is commonly used in both the `<head>` and `<body>` of the page.

_04_Worth knowing

## Using it with Google

### Pick the Google feature first

Rich result types come with their own required properties, which the vocabulary alone won't tell you.

### Describe what's visible

RDFa attributes sit on the content people read, which makes mismatches easier to spot than in a script block.

### Validate it

Run pages through the [Rich Results Test](/glossary/rich-results-test) and the [Schema Markup Validator](/glossary/schema-markup-validator).

### Mind mixed vocabularies

The W3C primer notes that `vocab` gets awkward when vocabularies such as Dublin Core and schema.org are intertwined, and shows `prefix` as the fix.

Questions

## Asked a lot.

5 questions people ask next, answered from the sources on this page.

_01_ What does RDFa stand for?

Resource Description Framework in Attributes. W3C describes it as a technique for adding structured data to HTML pages with markup attributes.

_02_ Does Google support RDFa?

Yes. Google lists RDFa as one of three structured data formats, alongside JSON-LD and Microdata.

_03_ Which is better, RDFa or JSON-LD?

Google recommends JSON-LD if your site's setup allows it, because it is easiest to implement and maintain at scale. RDFa is supported, so there is no need to rebuild working markup.

_04_ What is RDFa Lite?

A minimal subset of RDFa with five attributes: `vocab`, `typeof`, `property`, `resource` and `prefix`. W3C says it works for most day-to-day needs.

_05_ Can I use schema.org terms with RDFa?

Yes. Set `vocab` to `http://schema.org/`, as in W3C's RDFa Lite examples.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- w3.org
- google.com

1. 01 [RDFa 1.1 Primer - Third Edition](https://www.w3.org/TR/rdfa-primer/) w3.org · checked 2026-10-25
2. 02 [RDFa 1.1 Lite](https://www.w3.org/TR/rdfa-lite/) w3.org · checked 2026-10-25
3. 03 [Introduction to structured data markup in Google Search](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data) developers.google.com · checked 2026-10-25

## Keep learning

[All glossary](/glossary)

[Learn Schema Markup Validator Structured data](/glossary/schema-markup-validator) [Related Structured data Structured data](/glossary/structured-data) [Read next Microdata Structured data](/glossary/microdata) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Ranking factors](/glossary/ranking-factors) [Rate limiting](/glossary/rate-limiting) [React SEO](/glossary/react-seo) [Real user monitoring (RUM)](/glossary/real-user-monitoring)

More in Structured data
[Entity](/glossary/entity) [JSON-LD](/glossary/json-ld) [Knowledge Graph](/glossary/knowledge-graph) [Microdata](/glossary/microdata) [RDFa](/glossary/rdfa) [Rich Results Test](/glossary/rich-results-test) [sameAs](/glossary/sameas) [Schema Markup](/glossary/schema-markup) [Schema Markup Validator](/glossary/schema-markup-validator) [Structured data](/glossary/structured-data)

Terms on this page
[Structured data](/glossary/structured-data) [Microdata](/glossary/microdata) [JSON-LD](/glossary/json-ld) [Entity](/glossary/entity) [Schema Markup](/glossary/schema-markup) [Average position](/glossary/average-position) [Rich Results Test](/glossary/rich-results-test) [Schema Markup Validator](/glossary/schema-markup-validator)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
