The usages of the
META tag are poorly defined in the HTML specifications. The
META tag is used primarily for two purposes today:
I'll talk about each of these topics, in depth, in the following sections.
META tag requires two attributes:
NAME identifies the type or variety of
META tag in question;
CONTENT sets the necessary information for that version of the
META tag. The
NAME attribute, in some cases, is interchangeable with the
HTTP-EQUIV attribute; in other words, either
HTTP-EQUIV will be used as the identifier attribute for the
META tag, depending on the purpose of that particular
META tag; the second attribute will always be
META tag, like the
BR tags, must close within its opening tag using the space-close-slash before the closing bracket syntax we've talked about before. The
META tag always goes within the HEAD of an HTML page; it is NEVER placed in the BODY. You may place as many different
META tags in the HEAD as you like.
<meta name="keywords" content="candy,cookie,cake,pie" />
Example (in context):
<html> <head> <title>Example
METAtags</title> <meta name="keywords" content="candy,cookie,cake,pie" /> <meta name="description" content="I have a big sweet tooth." /> </head> <body> <p>Some content...</p> </body> </html>
META tag, in brief, allows the programmer to attach extra non-HTML information to an HTML document. Outside vendors (such as robotic search engines) may define variations of the
META tag which will assist them in indexing pages, or ANY other purpose. It is unlikely that too many more variations of the
META tag's purpose.
Copyright © 2001 Michael Masumoto. All Rights Reserved.