The META element is placed in the HEAD element to embed document meta-information that is not defined by other HEAD elements. This embedded information can be extracted by servers and clients to identify, index, and catalog specialized document meta-information.
META elements are added to the HEAD section of an HTML document, and can be written in one of two forms:
META NAME and
META HTTP-EQUIV.
- NAME elements are used to specify user variables, or variables that can be used by a client, such as a Web spider.
- HTTP-EQUIV elements are used to specify system variables and are treated as part of the HTTP response header, which is normally sent by the Web server.
These META elements resemble the following examples when viewed in HTML:
<META NAME="author" CONTENT="John Doe">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
The NAME or HTTP-EQUIV attribute declares a variable for the page and the CONTENT attribute assigns a value to the variable.
A META element standard for web spiders has evolved, which consists of two elements:
Description A brief description of the Web page.
Keywords One or more words that refer to the content on a Web page.
NOTE: Some web spiders ignore the
Description attribute and use their own algorithm to generate a description of the page.
Two examples using this standard are as follows:
- Example 1:
<META NAME="description" CONTENT="Web spider information">
<META NAME="keywords" CONTENT="robots, spiders">
- Example 2:
<META NAME="description" CONTENT="The Jogging Page">
<META NAME="keywords" CONTENT="jogging, health, fitness">
To add a META tag similar to these examples on your Web page,
follow these steps:
- Open a Web page in FrontPage.
- On the File menu, click Properties.
- In the Page Properties dialog box, click the Custom tab.
- In the User Variables section, click Add.
- In the Name box, type the name of the META variable. For example, type description.
- In the Value box, type the contents of the META variable. For example, type This is my web page.
- Click OK to add the variable.
- Click OK to exit the Page Properties dialog box.
- Save the page to your Web.