What is meta element in HTML?
meta represents various kinds of
Where to use the <meta> tag?
Similar to all HTML tags, a meta element is placed inside tags (<>): <meta>. It is an empty tag that does not require the closing tag (</>). Additionally, the meta element is always placed inside the <head> tag. <meta> tags represent:
- page description
- author of the document
- keywords
- character set
- viewport settings
Code
With the meta element, a user can provide metadata if the following attributes are set:
nameattribute: provides document-level metadata and applies it to the whole page.
http-equivattribute: a pragma directive that provides information equivalent similar to HTTP header.
charsetattribute: a character set declaration that gives the character encoding to the document encoded.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved