The meaning of the meta tag in HTML
The meta element is used to add machine-readable information to an HTML document. Information added with the meta tag is not displayed to website visitors, but is made available for use by browsers and search engine crawlers.
The tag is placed in the head section of the page.
The metadata contained in the tag
The meta element contains information about your page. The metadata contained in the tag is designed to help with categorization, search engine indexing, and browser behavior.
Metatags should be used not only for proper display in the browser and search, but also for internal site optimization.
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="A short description of page content"> <title>The meta tag in HTML</title> <meta name="keywords" content="keyword 1,..., keyword n"> <meta http-equiv="refresh" content="120"> </head> <body> <h2>The meaning of the tag meta in HTML</h2> The meta element is used to add machine-readable information to an HTML document. </body>
You can write meta tags in any sequence and in any quantity. It is extremely important to adhere to the main rule – do not use more than three keywords, which will be unique for each page. This will allow the site to work much more fully and consistently with the user audience.
The most important and frequently used attributes of meta tags
|charser||character_set||Assigns the HTML encoding to the document|
|content||текст||Main content of the meta tag. Specified with name or http-equiv|
|author||Page author name|
|description||Page content short description|
|http-equiv||Specifies the HTTP header of the content attribute|
|refresh||Sets the auto-update interval for the page|
|default-style||Assigns the preferred style sheet|
When you create a website markup, it is recommended that you store two metadata (priority belts) in the /bib/hashtabs and /hashtabs/ metadata files. These same two metadata files are recommended at the root page. The tag should always be present.