The 30 Content Metas of HTML

A Content Meta relates an information about the web document to user agents

Each Content Meta must be declared within the Head Container and optionally via a NoScript Container

AppName Meta

The AppName Meta names the application in a document.

The syntax is one void meta element per document with the following attributes:

<meta name="application-name" content="[value]">

Canonical Meta

A Canonical Meta names the original document to the current (duplicate) document

The syntax is a one void link element per document with the following attributes:

<link rel="canonical" href="[resource-url]">

Title Meta

The Title Meta elaborates the document name.

A document must have a Title Meta, except for each of the following cases:

The syntax is one title element per document with the following attributes and content:

<title> [non-empty text] </title>

Description Meta

The Description Meta describes the document.

The syntax is a one void meta element per document with the following attributes:

<meta name="description" content="[value]">

Keywords Meta

A Keywords Meta identifies the document with a set of keywords.

The syntax is a void meta element with the following attributes:

<meta name="keywords" content="[value]">

Author Meta

An Author Meta names the author of a document.

The syntax is a void meta element with the following attributes:

<meta name="author" content="[value]">

Icon Meta

An Icon Meta identifies the document with a graphic resource.

The syntax is a void link element with the following attributes:

<link rel="icon" href="[resource-url]">

Theme Meta

A Theme Meta relates the color to customize the interface of the user agent.

The syntax is a void meta element with the following attributes:

<meta name="theme-color" content="[value]">

Scheme Meta

The Scheme Meta relates the color scheme to use as default for a web document.

The syntax is one void meta element per document with the following attributes:

<meta name="color-scheme" content="[value]">

Translation Meta

A Translation Meta specifies a version of the current document in another language.

The syntax is a void link element with the following attributes:

<link rel="alternate" hreflang="[not-document-language]" href="[resource-url]">

Repurposing Meta

A Repurposing Meta specifies a version of the current document in another format.

The syntax is a void link element with the following attributes:

<link rel="alternate" href="[URL]" type="[valid-MIME-TYPE]">

Generator Meta

A Generator Meta specifies the name of a software that generates a part or the whole of a web document.

The syntax is a void meta element with the following attributes:

<meta name="generator" content="[value]">

Pingback Meta

A Pingback Meta relates a server resource to handle pingbacks to a web document

The syntax is a void link element with the following attributes:

<link rel="pingback" href="[url]">

Feed Meta

A Feed Meta relates an external resource to syndicate the contents of a web document to aggregators

The syntax is a void link element with the following attributes:

<link rel="alternate" type="application/rss+xml" href="[resource-url]">
<!-- or -->
<link rel="alternate" type="application/atom+xml" href="[resource-url]">

Referrer Meta

A Referrer Meta specifies the default referrer policy of a web document.

The syntax is a void meta element with the following attributes:

<meta name="referrer" content="[value]">

Charset Meta

The Charset Meta specifies the character encoding for a web document.

The syntax is one void meta element per document with either of the following attributes:

<meta charset="utf-8">

<!-- or -->

<meta http-equiv="content-type" content="text/html; charset=utf-8">

URL Meta

The URL Meta specifies a prefix for all non-schemed URLs in a web document.

This meta must precede elements with attributes that accept URLs.

The syntax is one void base element per document with the following attributes:

<base href="[URL]">

Target Meta

The Target Meta specifies the default opening context for all URLs in a web document.

This Meta must precede elements that represent hyperlinks

The syntax is one void base element per document with the following attributes:

<base href="[navigable-name-or-keyword]">

Security Meta

The Security Meta specifies a policy to secure the content of a web document.

The syntax is one void meta element per document with the following attributes:

<meta http-equiv="content-security-policy" content="[value]">

Timeout Meta

The Timeout Meta specifies the time to redirect a web document.

The syntax is one void meta element per document with the following attributes:

<meta http-equiv="refresh" content="[value]">

Manifest Meta

A Manifest Meta specifies a JSON resource that provides information about the web application in a web document.

The syntax is a void link element with the following attributes:

<link rel="manifest" href="[url]">

Next Meta

A Next Meta specifies a resource that is next in sequence to the current document.

The syntax is a void link element with the following attributes:

<link rel="next" href="[resource-url]">

A Search Meta relates an external resource to discover the contents of the current document.

The syntax is a void link element with the following attributes:

<link rel="search" href="[resource-url]">

Asset Meta

An Asset Meta relates a resource to be loaded in advance for a document

The syntax is a void link element with the following keywords:

  • One rel attribute with a preload keyword.

  • One as attribute with one of the following value: '', audio, audioworklet, document, embed, font, frame, iframe, image, json, manifest, object, paintworklet, report, script, serviceworker, sharedworker, style, track, video, webidentity, worker, or xslt.

  • One href attribute if value of as attribute is not image

  • One or both of href and imagesrcset if value of as attribute is image

  • Zero or one imagesizes attribute if the imagesrscet attribute has a value that includes a width descriptor

  • One crossorigin if value of as attribute is font otherwise optional

  • Zero or one count for each of the following attributes: fetchpriority, hreflang, integrity, media, referrerpolicy, type

  • Zero or one count for each Global Attribute

<link rel="preload" as="[font|image|audio|video|track|object|embed|document]" href="[URL]">

Template Meta

A Template Meta specifies a fragment of an HTML document with optional placeholders

The syntax is a template element with the following attributes and contents:

<template>

</template>

Stylesheet Meta

A Stylesheet Meta relates a set of CSS Rules for a document.

Each set may be embedded on or externalized to the page. A collection of stylesheets with the same title make up a theme. One theme can be the default.

The syntax for an Embedded Stylesheet is a style element with the following attributes and content:

<style>
  /* text that is style conformant */
</style>

The syntax for an External Stylesheet is a void link element with the following attributes:

<link rel="stylesheet" href="[URL]">

The syntax for a default Stylesheet Theme is one void meta element per document with the following attributes:

<meta http-equiv="default-style" content="[text]">

Script Meta

A Script Meta relates a set of JavaScript instructions for a document

The syntax is a script element with the following attributes and content:

<script></script>

Data Meta

A Data Meta relates data blocks for document scripts

The syntax is a script element with the following attributes and content:

<script type="[mime-type-but-not-text/javascript]"></script>

A Custom Link Meta specifies a non-standard metadata keyword whose value must be a URL to a resource

The syntax is a void link element with the following attributes:

<link rel="[extension-link-type-keyword]" href="[URL]">

Text Meta

A Text Meta specifies a non-standard metadata keyword whose value must not be a URL to a resource

The syntax is a void meta element with the following attributes:

<meta name="[meta-name-extension]" value="[value]">