TRENDING TOPICS

×

<meta> tag in HTML

The <meta> tag is used to provides metadata (additional information) about HTML documents.

Important Description

  • The <meta> tag is an empty element, it has no end tag.
  • The <meta> tag must be close like <meta /> in XHTML.

Example of <meta> tag

  • According to example, meta tag use defines page description, keywords, author, viewport, etc in HTML.
  • Metadata will not be displayed on the page, but will be machine parsable.
  • Use <meta> tag to redirect your page to any other webpage.
  • A <meta> viewport element gives directions to the browser how to control the pagess dimensions.

<meta> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<meta> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "scheme" attribute is not supported in HTML5:

Attribute Value Description
charset character_set Defines the character encoding for the HTML document
content text Gives the value associated with the http-equiv or name attribute
http-equiv content-type
default-style
refresh
Provides an HTTP header for the information/value of the content attribute
name application-name
author
description
generator
keywords
viewport
Defines a name for the metadata

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)