Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

<meta> name attribute

BaselineWidely available *

Thename attribute of the<meta> element provides metadata in name-value pairs.When a<meta> element has aname attribute, acontent attribute defines the corresponding value.The metadata isdocument-level metadata that applies to the whole page.

For example, the following<meta> tag provides adescription as metadata for a document:

html
<meta  name="description"  content="The HTML reference describes all elements and attributes of HTML, including global attributes that apply to all elements." />

Value

Meta names defined in the HTML specification

The HTML specification defines the following set of standard metadata names:

application-name

Browsers may use this to identify the application running in the web page.It is different from the<title> element, which may contain an application (or website) name, but a<title> may add contextual information like a document name or a status.Individual pages shouldn't define their own, uniqueapplication-name.To provide translations, use multiple<meta> tags with thelang attribute for each language:

html
<meta name="application-name" content="Weather Wizard" lang="en" /><meta name="application-name" content="Mago del Clima" lang="es" />
author

The document author's name.

color-scheme

Specifies one or more color schemes with which the document is compatible.The browser will use this information in tandem with the user's browser or device settings to determine what colors to use for everything from background and foregrounds to form controls and scrollbars.The primary use for<meta name="color-scheme"> is to indicate compatibility and order of preference for light and dark color modes.

description

A short and accurate summary of the content of the page usually referred to as a "meta description".Search engines like Google use this metadata to adjustthe appearance of a webpage in search results.

generator

The identifier of the software that generated the page.

keywords

Words relevant to the page's content separated by commas.

referrer

Controls the HTTPReferer header of requests sent from the document.

theme-color

Indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface.Thecontent attribute contains a valid CSS<color>.Themedia attribute with a valid media query list can be included to set the media that the theme color metadata applies to.

Meta names defined in other specifications

The CSS Device Adaptation specification defines the following metadata name:

viewport

Gives hints about the size of the initial size of theviewport.

Meta names defined in the WHATWG MetaExtensions wiki

TheWHATWG Wiki MetaExtensions page contains a large set of non-standard metadata names.Some of the names included are used quite commonly in practice, notably the following:

creator

The name of the creator of the document, such as an organization or institution.If there are more than one, several<meta> elements should be used.

googlebot

A synonym ofrobots, is only followed by Googlebot (the indexing crawler for Google).

publisher

The document publisher's name.

robots

A comma-separated list of values defining the crawl behavior that cooperative crawlers (or "robots") should use with the page.

Specifications

Specification
HTML
# standard-metadata-names
Referrer Policy
# referrer-policy-delivery-meta

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp