When writing in HTML, thetag is used to provide metadata about a web page. Alltags are stored in theelement and while they’re not visible on the page, they are still viewable to browsers and search engines. They are useful for storing information, like keywords and content descriptions.

The following sections contain information about thetag, including an example of its code, and related attributes and browser compatibility.

Example code

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows the current unique HTML attributes for thetag, and a description of each.

  • Example code
  • Attributes
  • Deprecated attributes
  • Compatibility
  • Related information

Deprecated attributes

A deprecated attribute is one that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.

Compatibility

Browser, Code, Compatibility, Encode, Keyword, Meta tags, Web design terms

  • HTML and web design help and support.