HTML 4 meta Tag

Also see HTML5 <meta> Tag.

This page contains information about the HTML 4 version of this element. For a more up to date version, see HTML5 <meta> Tag.

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 and closing <head> tags.



Attributes specific to this tag:
NameName for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc.
contentSpecifies the property's value.
schemeSpecifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equivUsed for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
Other Attributes:
langLanguage code
dirSpecifies the direction of the text

HTML5 Tags

The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5, which is the next version of HTML after HTML 4.01.

See HTML5 <meta> Tag for the HTML5 version of the above element.

Also see this list of HTML 5 tags for the latest version of HTML.