AMZ DIGICOM

Digital Communication

AMZ DIGICOM

Digital Communication

Meta tags in HTML: explanation and applications

PARTAGEZ

HTML meta tags, invisible to users and located in the header of a website, provide crucial information about the site. They indicate the structure, type of page, as well as the function and language of the content. In addition to influencing display and indexing, these tags are an essential SEO tool for improving the site's ranking in search engines.

What are meta tags in HTML?

THE meta tags HTML are special HTML tags because they are essential for presentation, interpretation and indexing of websites by browsers and search engines. They are found in the header of a website and are not visible to users. By skillfully using the HTML tag developers can provide page properties for better readability by search engines and define information such as language, content, structure or character encoding.

Meta tags are therefore an essential tool in HTML for optimizing pages. for search enginesimprove the ranking and control the display on all devices. Although metadata is no longer among the most important ranking criteria for websites today, HTML title and the meta descriptionin particular, continue to play an important role.

Advice

Want to learn more about using HTML and creating HTML documents? Discover our HTML tutorial for beginners in a dedicated Digital Guide article.

The main areas of application of HTML meta tags

The main areas of application of HTML meta tags are as follows:

  • Search engine optimization: Meta tags, such as for the meta description and title, provide search engines with information about the content and highlights of a page. They help to clearly summarize the content, generate interest and generate clicks.
  • Indexing: metadata, such as the tag robotstell search engines whether a page should be indexed or not.
  • Display and presentation: Meta tags may contain information and instructions about character encoding, display on mobile devices, automatic updates or redirections.
  • Social networks: Social networks use specific meta tags, which must be taken into account to ensure correct display when sharing content.
  • Accessibility: metadata plays a crucial role in accessibility, facilitating categorization by screen readers or ensuring optimal display on all devices thanks to the element viewport.

Domain name

Your domain in one click

  • 1 Wildcard SSL certificate per contract
  • Included Domain Connect feature for simplified DNS setup

What is the role of HTML meta tags?

Search engines like Google today provide very concrete and precise thematic classification based on specific keywords and queries. Until a few years ago, metadata played a much more important role in ranking a website. However, because it was much easier to manipulate rankings using meta tags and keywords, this sometimes led to abuse, such as keyword stuffing.

For modern search engines, metadata and its markup with HTML, however, has not lost any of its importance. Quite the contrary: poor use of metadata can lead to the risk of being completely ignored. Appropriate use of relevant metadata, such as tag </code> and meta description, as well as regular updating of metadata, can always be decisive criteria for a long-lasting good ranking.</p> <div id="c171721" class="mx-auto guides_cta_images no-hl" data-ctype="guides_cta_images" data-guides-info="Webhosting_CTA_FR" tabindex="0"> <div class="position-relative my-4 rounded-4 p-4 layout-0 overflow-hidden"> <div class="row d-flex flex-wrap align-items-bottom"> <div class="col-12" style="z-index: 1"> <div class="d-block mt-0 mx-0 mb-3 h3 headline"> <p> Web Hosting </p> <p> State-of-the-art web hosting at the best price </p></div> </div> <div class="col-12 col-sm"> <ul class="checklist highlight"> <li> 3x faster, 60% savings </li> <li> High availability >99.99% </li> <li> Only at IONOS: up to 500 GB included </li> </ul> </div> <p><button type="submit" class="btn btn-cta stretched-link mb-sm-1 mt-3 mt-sm-0 link-internal" onclick="window.open('https://www.ionos.fr/hebergement/hebergement-web?itc=2E5H5WQ0-1J1XUL-RJZW6UA','_top')" data-linkid="guides/digitalguide/fr-fr/page-36875/int-group/content/meta-tags-html-a-quoi-servent-ces-balises-meta-ioguidefr3267/webhosting-cta-fr/voir-loffre">See the offer</button></p> </div> </div> </div> <h2 id="content-les-principales-balises-meta-html-et-leur-syntaxe">The main HTML meta tags and their syntax</h2> <p>The functions performed by meta tags and their use depend on the type of tag. We have summarized some of the main meta tags for you in the following paragraphs.</p> <h3 id="content-optimisation-pour-les-moteurs-de-recherche-seo">Search Engine Optimization (SEO)</h3> <p>Search engine optimization is one of the most important functions of the HTML tag <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><meta/></code>. THE <strong>Following meta tags are particularly relevant for SEO</strong> :</p> <h4 id="content-title">Title</h4> <p>With title or item <code class="rounded-pill brand-box-bg brand-box-border-color px-code-inline-x py-code-inline-y"><title/></code>you briefly explain to search engines and users the <strong>content of a website</strong>. Strictly speaking, it is not a meta tag, but an independent tag that is placed before all other meta tags. Nevertheless, the title is often mentioned among the most important elements because it is also analyzed by search engines and used as one of the main ranking factors.</p> <p>As this is the clickable element in search results, it is important to have a clear and concise title that piques interest and is the correct length for a complete ad.</p> <p><strong>Syntax</strong> :</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>Insérer le titre du document

html

Meta description

The meta description certainly does not play a direct role in the ranking, but just like the title, it constitutes the first contact with users and provides the first information likely to generate clicks. Adequate length as well as elements such as icons, symbols that highlight relevant terms, or a Call-to-Action (CTA) are also important in this regard.

Syntax :

robots

With the HTML attribute robotsyou can give search engines the SEO instructions relevant for indexing, links, snippets or backup :

  • index : the page can be indexed.
  • noindex : the page should not be indexed.
  • follow : indexing robots (crawlers) can follow the links on the page.
  • nofollow : crawlers should not follow links on the page.
  • nosnippet : the contents must not be used as featured snippet (or “optimized extract” in French).
  • noarchive : the page saved in the Google cache should not be displayed.

If no data robots is not indicated, search engines interpret it as a permission to index, display snippets or follow links. Natural referencing with robots is therefore a very important function of meta tags.

Syntax for a page that can be indexed and whose links can be followed by crawlers:

viewport

The HTML meta attribute viewport is of fundamental importance for responsive website design. Although the meta tag is not directly relevant for SEO, it is nevertheless relevant for mobile SEOwhich also serves as an important ranking factor. Thanks to viewportyou tell a search engine whether your website supports responsive design on different devices and whether it is considered mobile-friendly. You watch with viewport to the correct representation of the website depending on the terminal, and therefore to a optimal usability.

Syntax :

Character encoding with charset

With the meta tag charsetyou indicate to browsers the character encoding used to guarantee a correct display of text. This is especially important if you have not specified the character set in the HTTP header or if the browser retrieves HTML files directly from the hard drive rather than via HTTP(S).

Syntax :

Cache with expires

If you don't want to completely disallow caching, you can use expires to set a date or period after which cached HTML data should expire. However, in modern web applications, the use of expires has become very rare, as caching is now primarily controlled by HTTP headers.

Syntax :

HTML meta tags author And copyright allows you to record the author and copyright information in the source code. This makes it easier to manage the page and is transparent about the latest changes made to it.

Syntax :

Keywords

Previously, keywords were one of the important ranking criteria when building websites. Today, meta keywords have significantly reduced importance and are ignored, at least by Google, when it comes to SEO relevance and ranking. As keywords, you describe the most important aspects of a page which, ideally, match users’ search intentions. Learning about keywords relevant to your field can provide competitive advantages. In principle, however, keywords now play a secondary role in ranking.

Syntax :

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

Web Marketing

ICS file: open and import calendar data

With the ICS format, you can import, export, share or publish appointments and events in digital calendars. With its worldwide usage, it is supported by

Web Marketing

What is reinforcement learning?

Reinforcement learning is a subfield of machine learning in which an agent learns, using rewards and penalties, to make optimal decisions in a given environment.

Souhaitez vous Booster votre Business?

écrivez-nous et restez en contact