http-Equiv attribute (meta)
Sets information for HTTP response message headers. Use it with the content attribute to create a well-defined meta tag.
JavaScript page for this attribute: httpEquiv. You can find other example(s) there. |
Possible values:
String that sets information about the HTTP response message header.
The list below contains only the commonly used values, for a detailed list, please visit the
Header Field Definitions (W3C) site.
Controls the caching mechanism to use for the page. Available values:
<meta http-equiv="cache-control" content="NO-CACHE" />
|
|||||||||||||||||||
Specifies the primary natural language(s) of the document. Used by search engines to categorize pages by language.
<meta http-equiv="content-language" content="en-US,de" />
|
|||||||||||||||||||
Specifies the character set for the contents of page.
It is recommended to always specify the character set. Use the charset attribute instead in HTML5.
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|||||||||||||||||||
Specifies the date and time when the page was created.
<meta http-equiv="date" content="Thu, 18 Nov 2008 19:11:42 GMT" />
|
|||||||||||||||||||
Specifies the date and time when the page will expire.
<meta http-equiv="expires" content="Wed, 9 Nov 2011 12:00:00 GMT" />
|
|||||||||||||||||||
Specifies the last modification date.
<meta http-equiv="last-modified" content="Thu, 18 Nov 2008 19:11:42 GMT" />
|
|||||||||||||||||||
Redirects the recipient to another location.
<meta http-equiv="location" content="URL=http://www.dottoro.com" />
|
|||||||||||||||||||
Specifies the Internet Explorer filter transition effect that is to be performed when the site is loaded.
<meta http-equiv="page-enter" content="revealtrans(duration=seconds,transition=num)" />
|
|||||||||||||||||||
Specifies the Internet Explorer filter transition effect that is to be performed when the site is loaded.
<meta http-equiv="page-exit" content="revealtrans(duration=seconds,transition=num)" />
|
|||||||||||||||||||
Specifies information to content loaders. | |||||||||||||||||||
Specifies cache control for older browsers. Same as cache-control. | |||||||||||||||||||
Creates a cookie with specified name,expires date and value. More than one cookie should be created by meta tags.
<meta http-equiv="set-cookie" content="name=value; expires=date; path=url" />
<meta http-equiv="set-cookie" content="dottocookie=myContent;expires=Wed, 9 Nov 2011 12:00:00 GMT; path=http://www.dottoro.com">
|
|||||||||||||||||||
Specifies the Internet Explorer filter transition effect that is to be performed when the site is loaded.
<meta http-equiv="site-enter" content="revealtrans(duration=seconds,transition=num)" />
|
|||||||||||||||||||
Specifies the Internet Explorer filter transition effect that is to be performed when the site is loaded.
<meta http-equiv="site-enter" content="revealtrans(duration=seconds,transition=num)" />
|
|||||||||||||||||||
Specifies the name of the frame where the current document must be loaded. | |||||||||||||||||||
|
Specifies the Document Compatibility Mode in Internet Explorer from version 8. For further details, please see Defining Document Compatibility (MSDN). |
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the http-Equiv attribute:
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Refresh" content="20" /> <meta http-equiv="Expires" content="Tue, 20 Aug 2020 14:25:27 GMT" /> </head> <body > </body> </html> |
|||
|
|||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
http-Equiv (MSDN)
http-Equiv (Safari Reference Library)
http-Equiv (W3C)
Header Field Definitions (W3C)
http-Equiv (Safari Reference Library)
http-Equiv (W3C)
Header Field Definitions (W3C)
User Contributed Comments