docs.rodeo

MDN Web Docs mirror

: The metadata element

{{HTMLSidebar}} 

The <meta> HTML element represents {{Glossary("Metadata","metadata")}}  that cannot be represented by other HTML meta-related elements, like {{HTMLElement("base")}} , {{HTMLElement("link")}} , {{HTMLElement("script")}} , {{HTMLElement("style")}}  or {{HTMLElement("title")}} .

The type of metadata provided by the <meta> element can be one of the following:

Attributes

This element includes the global attributes.

[!NOTE] The attribute name has a specific meaning for the <meta> element, and the itemprop attribute must not be set on the same <meta> element that has any existing name, http-equiv or charset attributes.

Examples

<meta charset="utf-8" />

<!-- Redirect page after 3 seconds -->
<meta http-equiv="refresh" content="3;url=https://www.mozilla.org" />

Technical summary

Content categories Metadata content. If the itemprop attribute is present: flow content, phrasing content.
Permitted content None; it is a `{{Glossary("void element")}}` .
Tag omission Must have a start tag and must not have an end tag.
Permitted parents
  • <meta charset>, <meta http-equiv>: a `{{HTMLElement("head")}}`  element. If the http-equiv is not an encoding declaration, it can also be inside a `{{HTMLElement("noscript")}}`  element, itself inside a <head> element.
  • <meta name>: any element that accepts metadata content.
  • <meta itemprop>: any element that accepts metadata content or flow content.
Implicit ARIA role No corresponding role
Permitted ARIA roles No role permitted
DOM interface `{{domxref("HTMLMetaElement")}}` 

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN