<meta>
tag provides information about a page to search engines and other clients. <meta>
tag must specify exactly one of the following attributes name
,
http-equiv
,
charset
or
itemprop
: <meta name="…" content="…" /> <meta http-equiv="…" content="…" /> <meta charset="…" /> <meta itemprop="…" content="…" />
<meta name="…" content="…" />
is used to include page-wide metadata. ""
, "no-referrer"
, "no-referrer-when-downgrade"
, "same-origin"
, "origin"
, "strict-origin"
, "origin-when-cross-origin"
, "strict-origin-when-cross-origin"
, "unsafe-url"
<meta name="color-scheme" content="dark">
name="robots"
, all search engines are addressed. In order to address Google only, use <meta name="googlebot" …>
. <meta name="robots" content="noindex" /> <!-- Don't index the page --> <meta name="robots" content="nofollow" /> <!-- Don't follow links on the page --> <meta name="robots" content="nosnippet" /> <!-- Don't show a text snippet in the search result pane --> <meta name="robots" content="noarchive" /> <!-- Don't archive the content of the page, no cache. -->
<meta name="robots" content="noindex,nosnippet,noarchive" />
content-language
(Compare to <html lang="…">
)
content-security-policy
content-type
, see Specifying a characterset within an HTML document
default-style
refresh
, See Redirection with HTML
set-cookie
(should be ignored by user agents)
x-ua-compatible
Accept-CH
(Compare with the Accept-CH
response header) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
can be replaced with: <meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=9">
x-ua-compatible
depends on the web browser that renders a HTML document. <!DOCTYPE>
declaration and a x-ua-compatible
, the x-ua-compatible
overrules the doctype declaration. (At least in IE).
<meta property="og:title" content="Add a headline here." /> <meta property="og:description" content="Describes the page with up to 297 characters." /> <meta property="og:type" content="article" /> <!-- or blog, or website, or … <meta property="og:image" content="https://foo.bar/path/to/image/shown/image/that/facebook/shows/as/screenshot.jpg" /> <meta property="og:url" content="…" />
<meta name="Generator" content="The very cool CMS application">
<meta charset="utf-8">
<meta name="robots" content="index,follow">
<meta name="google-site-verification" content="sfRzmUzt…">