Meta tags

meta tags and attributes that Google supports

This page explains what meta tags are, which meta tags and HTML
attributes Google supports to control indexing, and other important points to note when
implementing meta tags on your site.

meta tags

meta tags are HTML tags used to provide additional information about a page to
search engines and other clients. Clients process the meta tags and ignore those they don’t
support. meta tags are added to the <head> section of
your HTML page and generally look like this:

Google supports the following meta tags:

List of meta tags that Google supports

description

Use this tag to provide a short description of the page. In some situations, this
description is used in the
snippet shown in search results.

robots and googlebot

These meta tags control the behavior of search engine crawling and
indexing.

The <meta name="robots" ... tag applies to all search engines, while
the <meta name="googlebot ... tag is specific to Google.

In the case of conflicting robots (or googlebot)
meta tags, the more restrictive tag applies. For example, if a page has
both the max-snippet:50 and nosnippet tags, the
nosnippet tag will apply.

The default values are index, follow and don’t need to be specified.
For a full list of values that Google supports, see the
list of valid rules.

You can also specify this information in the header of your pages using the
X-Robots-Tag HTTP header rule. This is particularly useful if you wish to limit
indexing of non-HTML files like graphics or other kinds of documents.
More information about robots meta tags.

notranslate

When Google recognizes that the contents of a page aren’t in the language that the
user likely wants to read, Google may provide a translated title link and snippet in search results.
If the user clicks the translated title link, all further user interaction with the page
is through Google Translate, which will automatically translate any links followed. In
general, this gives you the chance to provide your unique and
compelling content to a much larger group of users. However, there may be situations
where this is not desired. This meta tag tells Google that you don’t want
us to provide a translation for this page.

nopagereadaloud

Prevents various Google text-to-speech services
from reading aloud web pages using text-to-speech (TTS).

google-site-verification

You can use this tag on the top-level page of your site to verify ownership for Search Console.
Note that while the values of the name and
content attributes must match exactly what is provided to you (including
upper and lower case), it doesn’t matter if you change the tag from XHTML to HTML or
if the format of the tag matches the format of your page.

Content-Type and charset

These tags define the page’s content type and character set respectively. Make sure that you
surround the value of the content attribute in the
http-equiv
meta tag with quotes—otherwise the
charset
attribute may be interpreted incorrectly. We recommend using Unicode/UTF-8 where possible.

refresh

This tag, commonly called meta-refresh, sends the user to a new URL after a certain
amount of time, and is sometimes used as a simple form of redirection. However, it is
not supported by all browsers and can be confusing to the user.
We recommend using a server-side
301 redirect
instead.

viewport

This tag tells the browser how to render a page on a mobile device. Presence of this tag
indicates to Google that the page is mobile friendly.
Read more about how to configure the viewport meta tag.

rating

Labels a page as containing sexually-explicit adult content, to signal that it be filtered by SafeSearch
results. Learn more about labeling SafeSearch pages.

HTML tag attributes

HTML tag attributes
are additional values of HTML tags that configure the parent tag. For example, the
href attribute of the <a> tag configures the resource the anchor
tag points to: <a href="https://example.com/"...>.

Google Search supports a limited number of HTML attributes for indexing purposes. Attributes
like src and href are used for discovering resources such as images
and URLs. Google also supports various
rel attributes
that allow site owners to qualify outbound links.

The
data-nosnippet attribute
of div, span, and section tags allow you to exclude
parts of an HTML page from snippets.

Other points to note

  • Google can read both HTML and XHTML-style meta tags, regardless of the code
    used on the page.
  • To ensure machine readability, the head section must be
    valid HTML and in case of
    attributes, all parent tags closed accordingly.
  • With the exception of google-site-verification, letter case is generally not
    important in meta tags.
  • You can use other meta tags if they are important to your site, but Google will
    ignore meta tags that it doesn’t support.
  • If you’re considering using JavaScript to inject or change meta tags, proceed
    with caution. We recommend that you avoid using JavaScript to inject or change
    meta tags whenever possible, and if you must use it,
    test your implementations
    thoroughly.
  • To check the meta tags and attributes on your pages, use the
    URL Inspection Tool.
Alien Road

Comment nous l'appliquons

This is our reference list when deciding which meta tags a template actually needs. Most sites we inherit carry a dozen tags that do nothing, and removing them makes the head easier to reason about.

Services associés

, ,
Partager

© Copyright 2026 Alien Road. All rights reserved.