Meta tags
Definition
Meta tags provide machine-readable additional information in the HTML document, for example about character encoding or page description.
The HTML meta element provides metadata that is not expressed by other designated elements. Depending on the attribute, it may contain a description, character encoding information, or specific processing instructions. Not every entry in the document head is therefore a meta tag.
Simply explained
You provide the page with additional hints that programs can evaluate without displaying them as normal page text.
Why it matters in practice
Correct meta information supports the processing and description of a page; its specific effect depends on the evaluated attribute.
Example from business
Possible example: A company stores an individual description for a service page and checks the generated meta elements in the page source code.
Limits and pitfalls
- The page title is in the title element, not in a meta tag. Unknown or contradictory entries may be ineffective or give unwanted hints.
Origin & history
Meta elements belong to HTML and are a concrete way to provide metadata about a web document.
Use in mid-sized companies
- Teams can maintain relevant meta information in page templates and check after changes which values are actually output.
Frequently asked questions
Are all entries in the HTML head meta tags?
No. title, link, or script are also there and have their own functions.
Sources
- <meta>: The metadata element. · MDN (o. J.): <meta>: The metadata element.
Editorially reviewed on: