HTML 4 meta Tag
Also see HTML5 <meta>
Tag.
This page is for 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.
Example
Attributes
Attributes specific to this tag: | |
---|---|
Attribute | Description |
Name | Name for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc. |
content | Specifies the property's value. |
scheme | Specifies a scheme to use to interpret the property's value (as declared in the content attribute). |
http-equiv | Used 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: | |
Attribute | Description |
lang | Language code |
dir | Specifies 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.
See HTML5 <meta>
Tag for the HTML5 version of the above element.
See this list of HTML tags for the latest list of HTML elements.