HTML metadata

HTML <meta> tags are used to provide information (metadata) about a Web page, metadata is not displayed on a Web page, but rather provide some indication to the browser, or provide additional information for search engines:

  <meta charset="utf-8">
  <title>Is not a meta tag, but must be present on every web page</title>
  <meta name="keywords" content="keywords">
  <meta name="description" content="Short description">

In our example, we used three elements of <meta>: the first indicates to the browser the encoding of the HTML document, the other two meta tags are intended to provide information about the content of the web page for search engines. Next we will look at each of them learn more.

Note: <meta> tags must be located in the <head> element.


The encoding tells the browser which character set is used on this web page. For example, pages can be written using encodings for Russian, English, Arabic, Chinese, and many other character sets.

To specify the encoding, use the <meta> tag with the charset attribute, which is recommended as the first element inside the <head>:

  <meta charset="utf-8">

Note: UTF-8 is a universal encoding that supports most languages and characters.


Any site has a set of keywords and phrases on which search engines look for the right resources in the network. These are the words that should compose the keywords content.

The easiest way to find the right keywords for the current page is to determine by what words you would look for the material presented on it. This will be the right keywords.


<meta name="keywords" content="Meta tag, metadata, keywords, description">

Keywords are specified by a comma or a space and can be written in any register. It is recommended to specify no more than 10-15 key words or phrases.

Search engines are now more advanced and define the category to which the information belongs, the content of the Web page, and the keywords are relegated to the second plan or completely ignored.


The description value is used to briefly describe the content that is on the current page. The recommended maximum length of this description should not exceed 180 characters:

<meta name="description" content="Description of the content on this page">

A short description of the page can be used by the search engine on the search results page under the name of pages and URLs:

Show description In search results

Also a short description is used on the sites of some social networks, when adding a link to a web page:

Display description цhen adding a link in social networks

The following points should be taken into account when compiling a brief description:

Note: A short description, located under the link on the search results page, is called a snippet.

<title> tag

The <title> tag is part of the metadata and is used to specify the page title. The title of the page can be compared to the title of the chapter of the book, as it should tell users and search engines about the information presented on the page.

The headline should contain important keywords so that search engines can include your page in search results for specific queries. It can also help users decide whether to visit your site or not, as they will see the headline as the link text in the search results:

title tag

The <title> tag is one of the most important tags on a page. Consider a small list of recommendations that you should follow to write an optimized header for search engines:

<title>Page Theme | keywords | company or site name</title>
<!-- Or so -->
<title>Keywords | About Us | company or site name</title>
Copying materials from this site is possible only with the permission of the site administration and
when you specify a direct active link to the source.
2011 - 2021 © | ruen