Meta elements are a crucial part of HTML[6] coding that provide specific information about a web page. These elements are used to specify page description, character encoding, keywords, and other metadados[4] not visible to users but significant for search engines. They play a vital role in Otimização para motores de busca[1] (SEO) as they help categorize pages and are supported by major search engines like Google[5]. However, their value in SEO is a subject of debate. Meta elements can also control search engine indexing[2] through the robots attribute. Notably, they can serve as alternatives to HTTP headers. Other uses include redirecting users to different locations and providing information on page expiration dates. Despite their versatility, meta elements’ usage must comply with accessibility guidelines for optimal user experience[3].
Meta elements are tags used in HTML e XHTML documents to provide structured metadados about a Página Web.
They are part of a web page's head
section. Multiple Meta elements with different attributes can be used on the same page. Meta elements can be used to specify page description, keywords and any other metadados not provided through the other head
elements and attributes.
The meta element has two uses: either to emulate the use of an HTTP response header field, or to embed additional metadata within the HTML document.
With HTML up to and including HTML 4.01 and XHTML, there were four valid attributes: content
, http-equiv
, name
e scheme
. Under HTML 5, charset
has been added and scheme
has been removed. http-equiv
is used to emulate an HTTP header, and name
to embed metadata. The value of the statement, in either case, is contained in the content
attribute, which is the only required attribute unless charset
is given. charset
is used to indicate the character set of the document, and is available in HTML5.
Such elements must be placed as tags in the head
section of an HTML ou XHTML document.