Back
Next
<META HTTP-EQUIV="name" CONTENT="content">
<META NAME="name" CONTENT="content">
HTML
META tags have two possible attributes:
HTML
META tags should be placed in the head of the HTML file, between the <HEAD>
and </HEAD> tags especially important in documents using FRAMES.
This HTML Tutorial section of HTML Meta Tags will guide you about the meta use,
syntax, and kinds in HTML.
HTTP-EQUIV tags
HTML
META tags with an HTTP-EQUIV attribute are
equivalent to HTTP headers, you will learn more about meta here in HTML Tutorial
section of HTML Meta tags. Typically, they
control the action of browsers, and may be used
to refine the information provided by the actual
headers. Tags using this form should have an equivalent
effect when specified as an HTTP header, and in some servers
may be translated to actual HTTP headers automatically or by
a pre-processing tool.
Content-Type of HTML Meta Tag
The HTTP content type may be extended to give the character
set. As an HTTP/1.0 header, this unfortunately breaks older browsers.
As a HTML META tag, it causes Netscape Navigator to load the appropriate charset
before displaying the page. like.
<META HTTP-EQUIV="Content-Type" CONTENT="
text/html; charset=ISO-2022-JP">
It is now recommended to always use this tag,
even with the previously-default charset
ISO-8859-1. Failure to do so may cause display
problems where, for instance, the document uses UTF-8
punctuation characters but is displayed in ISO or ASCII
charsets
Content-Style-Type of HTML Meta Tag
<META HTTP-EQUIV="Content-Style-Type"
CONTENT="text/css">
Specifies the default style sheet language for a web document.
Content style type of html meta tag sets the document's preferred style sheet,
taken from a stylesheet specified elsewehere e.g. in a LINK element.
Refresh Meta Tag in HTML
<META HTTP-EQUIV="Refresh" CONTENT="3;URL=https://www.globalguideline.com/html">
Section of Refresh meta tag in HTML Tutorial specifies a delay in seconds before the browser automatically reloads the document. Optionally, specifies an alternative URL to load.
(HTTP header)
Refresh: 3;URL=https://www.globalguideline.com/html
In Netscape Navigator, has the same effect as clicking
"Reload"; i.e. issues an HTTP GET with Pragma: no-cache
(and If-Modified-Since header if a cached copy exists).
Note: If a script is executed which reloads the current
document, the action of the Refresh tag may be undefined.
(e.g. <body onLoad= "document.location='otherdoc.doc'>)
Back
Next
|