HTML scheme Attribute

Beginner
4 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The scheme attribute on <meta> once described the format or vocabulary of the content value (for example ISBN or a date pattern). It was meant to help interpret name + content pairs.

The WHATWG HTML Standard lists scheme as obsolete. Authors must not use it. Prefer one scheme per field, put format info in the value or name, or use structured data (JSON-LD) instead.

Deprecated / obsolete.

Do not ship scheme on new pages. Recognize it in legacy markup, then migrate to plain name / content (or JSON-LD).

HTML Syntax

syntax.html
<!-- obsolete --> <meta name="…" content="…" scheme=" format">
<!-- modern --> <meta name="…" content="…">

Legacy IDL: meta.scheme — do not use in new code.

Attribute Values

Historically a free-form string. Common legacy patterns and modern approaches:

Legacy patternMeantUse todayTry it
scheme="ISBN"content is an ISBNDedicated name/field or clear content; or JSON-LD isbnTry it
scheme="YYYY-MM-DD"Date format of contentISO date in content alone, or JSON-LD date fieldsTry it
Vocabulary URI / nameWhich thesaurus/system appliesEncode in the metadata name or use structured dataTry it
Omit scheme—Standard modern meta markupTry it

Live Preview

Pick a legacy scheme idea and compare the obsolete markup with a modern replacement. Meta tags are not visible on the page — the note shows the recommended code.

Obsolete: do not use scheme. Prefer the modern line.

Markup compare

HTML Examples

Legacy vs modern. Prefer the modern snippets for real projects.

Example 1 — Legacy scheme="ISBN"

Old pages sometimes labeled an identifier format with scheme. Drop it today.

HTML
<!-- obsolete -->
<meta name="identifier" content="978-0-123456-78-9" scheme="ISBN">

<!-- modern: clear name + content (or JSON-LD Book.isbn) -->
<meta name="citation_isbn" content="978-0-123456-78-9">
Try It Yourself

How It Works

  1. Legacy: scheme said "this content is an ISBN."
  2. Modern: choose a clear name (or JSON-LD property).
  3. content still holds the actual value.
  4. No scheme attribute on new pages.

Example 2 — Date format in the value

Put the format in the data itself (ISO-8601) instead of a separate attribute.

HTML
<!-- obsolete -->
<meta name="date" content="2026-10-28" scheme="YYYY-MM-DD">

<!-- modern -->
<meta name="date" content="2026-10-28">
<!-- or structured data: "datePublished": "2026-10-28" -->
Try It Yourself

How It Works

  1. scheme used to declare the date pattern separately.
  2. ISO content already encodes the format.
  3. Spec advice: one scheme per field, or fold it into the value.
  4. JSON-LD is often clearer for dates and books.

Example 3 — Everyday modern meta

Normal page metadata never needed scheme.

HTML
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Short page summary for search and sharing.">
</head>
Try It Yourself

How It Works

  1. charset / viewport / description are current practice.
  2. name + content carry the metadata pair.
  3. scheme is omitted entirely.
  4. Study name, content, and http-equiv for live meta attributes.

Edge Cases & Pitfalls

Most issues are copying legacy Dublin Core-style markup into new sites.

obsolete

Validators flag scheme

Remove it when you update old templates.

name clash

Not a URL scheme

https: / mailto: are protocol schemes — unrelated to this attribute.

seo

Search engines ignore scheme

Use standard meta, Open Graph, and JSON-LD for discoverability.

idl

meta.scheme may still exist

Legacy DOM only — do not build features on it.

Browser Support

scheme is an obsolete HTML attribute on <meta>. Do not use it in new projects.

✓ Obsolete — do not use

scheme

May remain in the DOM for old pages. New markup should use name/content or structured data only.

N/A Authoring status
Google Chrome Parse*
Ignore for authors
Mozilla Firefox Parse*
Ignore for authors
Apple Safari Parse*
Ignore for authors
Microsoft Edge Parse*
Ignore for authors
Opera Parse*
Ignore for authors
Samsung Internet Parse*
Ignore for authors
Internet Explorer Yes
Legacy
scheme Obsolete

Bottom line: *May expose HTMLMetaElement.scheme. Never add scheme to new HTML.

Key Takeaways

  • Was: format/vocabulary hint for meta content.
  • Now: obsolete — omit scheme.
  • Replace with clear name/content or JSON-LD.
  • Not the same as URL schemes (https:).

One line: scheme on <meta> is obsolete — use name + content (or JSON-LD).

Frequently Asked Questions

On meta, scheme once described the format or vocabulary of the content value (for example ISBN or a date format). It extended how name/content metadata was interpreted.
No. The WHATWG HTML Standard lists scheme on meta as obsolete. Authors must not use it. Prefer plain name + content, or put scheme info in the value/name.
Use one clear metadata field per meaning, encode the format in the content string when needed, or use structured data such as JSON-LD for rich metadata.
The IDL property HTMLMetaElement.scheme may still exist for compatibility, but browsers do not usefully act on it for modern pages. Do not rely on it.
No. This attribute was about metadata value formats on meta, not URL protocol schemes.
Standard meta name/content (description, viewport, robots), Open Graph/Twitter tags when needed, and JSON-LD for structured data — without scheme.

Next: scope

Associate table headers with rows or columns using scope.

scope tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful