AMZ DIGICOM

Digital Communication

AMZ DIGICOM

Digital Communication

Meta Tags: Guide to HTML Optimization for Your Web Pages

PARTAGEZ

Meta tags are information embedded in the header (head) of an HTML document and are used to provide metadata. Invisible to visitors to a web page, they are however read by user agents, such as browsers and search engine robots.

Create a website

Your site in a flash thanks to artificial intelligence

  • Intuitive site editor with AI features
  • Image and text generator with SEO optimization
  • Domain, SSL and email included

What are HTML meta tags?

HTML meta tags are HTML elements used to provide additional information on a web pagein order to facilitate analysis and management. They are inserted in the header () du document HTML et ne s’affichent pas à l’écran. Chaque balise méta suit généralement une structure simple : un attribut définit le type d’information, auquel est associé un contenu. Le schéma classique des métadonnées HTML est donc le suivant :

Bien que les métadonnées HTML aient autrefois joué un rôle central dans l’optimisation pour les moteurs de recherche, leur impact direct sur le classement dans Google, Bing ou d’autres moteurs est aujourd’hui considéré comme limité. Il reste néanmoins fortement recommandé aux exploitants de sites Web de renseigner des métadonnées précises dans l’en-tête HTML. En effet, celles-ci conservent leur utilité pour les métamoteurs de recherche et les outils de recherche internes. Par ailleurs, les balises méta permettent aussi de donner des instructions spécifiques aux robots d’indexation (crawlers) concernant l’exploration et l’indexation des pages.

Les balises méta à absolument connaître

La liste des éléments possibles dans l’en-tête HTML est longue. Au-delà des données essentielles telles que les titres de page, les descriptions et les définitions des caractères utilisés, l’en-tête HTML peut contenir une grande variété d’éléments. Au-delà des informations essentielles comme le titre de la page, la description ou la définition du jeu de caractères, cette section (placée dans la balise ) permet de fournir de nombreuses données aux agents utilisateurs. Les exploitants de sites Web peuvent ainsi y intégrer des mots-clés, définir le thème de la page, ou encore indiquer le nom de l’auteur, de l’éditeur, voire des informations sur les droits d’auteur via les balises méta.

Toutes ces données ne sont pas nécessairement pertinentes pour les navigateurs Web ou les robots des moteurs de recherche. En revanche, certaines balises méta ont un impact direct sur la manière dont ces agents traitent la page : elles permettent par exemple d’empêcher l’indexation d’une page HTML ou de bloquer le suivi des liens sortants par les crawlers.

Le tableau ci-dessous présente les balises méta les plus importantes à connaître.

Balise méta Pertinence Exemple
title Very high: essential for SEO, used as a page title in search results Voici le titre de ma page Web
description High: influences click-through rate when appearing in search engine results
charset Very high: necessary for correct display of characters (accents, symbols, etc.)
author Low: useful for internal management or CMS, but without impact on SEO
copyright Low: legally informative, with no effect on classification
robots High: controls indexing and link tracking by search engines
http-equiv Medium: allows technical settings (e.g.: redirections, cache)

Title (</code>)</h3> <p>THE <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><title/></code> is not a meta element per se, but rather an independent HTML tag. However, due to its interaction with user agents, it is often associated with metadata. As an element <strong>OBLIGATORY</strong> of the HTML header, the <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><title/></code> is usually placed before all other meta tags. Read by web browsers, it appears in a tab or window bar as the default name when bookmarking and in history. Furthermore, all major search engines use tags <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><title/></code> as article titles in their search results or SERP (in English <em>Search Engine Results Page</em>).</p> <p>A relevant title is essential to obtain a good <strong>click-through rate (CTR)</strong>. As part of the optimization <em>on-page</em>it is therefore crucial to respect the maximum length displayed by search engines, i.e. approximately 580 pixels, which corresponds to 50 to 60 characters. It is also recommended to include the main keyword of the page in the tag <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><title/></code>ideally at the beginning. Here is an example of a tag used for this page:</p> <div class="prism-container position-relative my-4"> <pre class="rounded-4 m-0 p-2 pt-3 brand-box-bg border brand-box-border-color"><code class="language-html"><title>Voici le titre de ma page Web

html

Character encoding

If the character encoding is not specified in the HTTP header, it is recommended to define it directly in HTML, in particular to guarantee thecorrect display accents and special characters. In order to specify special characters or character encoding, use the following meta tag:

Metadata is also relevant if a browser does not receive HTML files over HTTP, but directly from the hard drive.

Description of pages

The description (also called meta description tag) is a space dedicated to writing a short summary of the content of the Internet page. Since this meta tag is taken into account by the main search engines like Google or Bing in their results, it is essential to give it special care when writing it. Indeed, the meta description has a direct influence on the clicking behavior of Internet users. As such, it is one of the most important SEO meta tags for HTML pages.

Website operators must ensure that the meta description text does not exceed 920 pixels, or approximately 150 to 160 characters. Beyond this limit, search engines risk truncating the text displayed in the results. It is therefore recommended to write a description concise and engagingwhich effectively summarizes the content of the page while encouraging clicks.

Meta tags author (author) and copyright (copyright) allow website operators to indicate in the source code the author of the HTML page, as well as the copyright ownership of its content. In some content management systems (CMS), the tag author can be populated automatically. These two tags are optional in French law.

Information for web crawlers (robots)

One of the essential roles of meta tags is to provide indexing instructions to search engine crawlers. This is done at the level of each page using the meta tag robots. Thanks to the latter, it is possible to indicate whether or not a page should be indexed in search engine results (SERP), and whether outgoing links should be followed or ignored by crawlers. The directives provided via the robots tag are part of the essential meta elements in terms of SEO.

index

To allow a page to be indexed in a search engine, use the following meta tag:

Since indexing web pages corresponds to the standard behavior of web crawlers, this data is generally unnecessary.

noindex

If you want to prevent an HTML page from being indexed by search engines, you must clearly specify this using a dedicated meta tag:

The attribute name="robots" applies to all search engine crawlers. Associated with the attribute content="noindex"it indicates that the page should not be indexed. If you want to restrict this directive to a specific robot, like Google's, just use another attribute name, e.g. name="googlebot".

follow

Following an outgoing link from a web page is standard behavior of web crawlers. If desired, bots can be redirected in the following way:

This meta tag is actually redundant, because web crawlers follow all links on a page by default unless otherwise directed like nofollow is specified.

nofollow

If you want to prevent bots from following outgoing links on the page, use the following tag:

This instruction instructs the crawler not to transmit PageRank via outgoing links on the page. Until 2019, Google strictly adhered to this guideline. From now on, it is considered a simple recommendation; Google may still decide to follow these links and crawl them.

Meta tags index/noindex And follow/nofollow can be used alone or combined. For example, it is possible to authorize the indexing of a page while preventing robots from following the links it contains. The two actions can thus be authorized or blocked independently of each other.

Note

Using the file robots.txt constitutes another important lever for controlling search engine access. Unlike meta tags, which apply page by pagethe file robots.txt allow to exclude globally exploring entire directories or specific file types. Placed at the root of the domain, it is read first by search engines even before pages are loaded.

HTTP equivalents

Thanks to the attribute http-equivmeta tags can simulate certain instructions in an HTTP header. They are particularly taken into account when the web server is not configured to send these headers directly. However, if a statement is defined both in the HTTP header and via a meta tag, it is the version of the HTTP header that prevails.

cache-control

To ensure pages load quickly, it is common for the Internet to use proxy servers or browser caches to temporarily store content. This behavior can however be prevented using the meta tag cache-control associated with the value no-cache :

Web pages with this tag should load on each page request. This slows down the page loading, but can be relevant if the content of a web page is constantly changing.

expires

Instead of completely blocking the cache, the attribute http-equiv gives you the opportunity to set an expiration date for retrieved HTML files. To do this, here is the meta tag to use:

You can set the cache duration using a value expressed in seconds. For example, a value of 0 disables caching completely, while a value of 43200 corresponds to a duration of 12 hours. Once this time has elapsed, the browser reloads the page from the original server.

You can also set durations, including dates and times. These must be specified in international format and Greenwich Mean Time.

refresh

Meta tags including the attribute http-equiv allow you to create a simple form of transfer. In the same way as the tag expires sets an expiration date, refresh defines a redirect. When this limit is exceeded, user agents such as Internet browsers or web crawlers are forwarded to a predefined URL. This code example shows a 10-second transfer to the IONOS home page:

Since the meta tag refresh does not work under certain browser settings, the World Wide Web Consortium (W3C, technical standards organization) recommends server-side implementation using HTML 301 code rather than transfer via a meta tag. You can find more information about this in our article on the main HTTP status codes and their meaning.

Meta tags: HTML code example

Below is sample code representing an HTML header simple but complete. It incorporates the most important meta tags mentioned in this article; it is inspired by the actual metadata used for this article.




    
    
    Balises méta : guide d’optimisation HTML pour vos pages Web
    
    
    
    
    
    
    
    
    
    
    
    


    
    

html

Note

There are many meta tag generators online that make it quick and easy to create the right code for your web page. For example, a free tool is available on the site SEOptimer. All you need to do is fill in the desired information; the tool then generates the HTML code that you can copy into the header () of your page.

Website with domain name

Create your website in minutes

  • Professional templates
  • One-click design editing
  • Domain, SSL and email

Télécharger notre livre blanc

Comment construire une stratégie de marketing digital ?

Le guide indispensable pour promouvoir votre marque en ligne

En savoir plus

Souhaitez vous Booster votre Business?

écrivez-nous et restez en contact

Suivez-nous:

© 2026 AMZ DIGICOM All Rights Reserved