Meta information. Used to provide information about the HTML page. The HTML <meta> tag is used for declaring metadata for the HTML document.

Metadata can include document decription, keywords, author etc. It can also be used to refresh the page or set cookies.

The meta tag is placed between the opening/closing <head> </head> tags.

Required Attributes

  • content is used to specify the meta information itself.

Optional Attributes

  • name can be used to specify the name given to the meta information. The value can be anything, but common examples are description and author.
  • http-equiv can be used when name is not used to define an 'equivalent' HTTP header for the document. This is commonly used to specify the MIME type and character set when the author has no direct control over the server.
  • scheme can be used when name is used to specify how the value of content should be interpreted.
  • International Attributes

Example

<meta name="keywords" content="lion king, mufasa, sarabi" />

Changes in HTML5

  • None.

Related Tags