HOME ~ RESOURCE KIT ~ WEBMASTER'S ZONE ~ JAVASCRIPT ~ DESIGN TIPS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">]
The META tag contain details that are not visible to the viewer, like other HTML tags. However, search engines use the META tag for several reasons. These include indexing sites for content. This is the keyword tag that contains relevant words one might use to locate a site. Another is the description tag that can contain a short text describing the site's contents. This appears in the search results of some search engines and allows people to determine additional detail about that site.
Below is an example that could apply to this site:
<META NAME="keywords" CONTENT="HTML, web design, javascript, webmasters">
Other META tags contain details of the software and page author. If you used Netscape Composer the following tags may be added automatically by the program itself:
<META NAME="AUTHOR" CONTENT="Mick Kenny">
<META NAME="GENERATOR" CONTENT="Mozilla/3.0Gold (WinNT; I) [Netscape]">
The character set a page uses can be specified. This may be useful if a character set other than standard is used, such as if a language other than English is used. For English, it would appear as below:
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<HTML>
<META HTTP-EQUIV="refresh"
CONTENT="5; URL=http://www.design.com/web/tips/index.html">
This page has moved to http://www.design.com/web/tips/index.html. Your browser should take you there in about 5 seconds.
<BR>
Click the link below if your browser does not load automatically:
<P>
<A HREF="http://www.design.com/web/tips/index.html">http://www.design.com/web/tips/index.html </A>
</HTML>
Note that the URL needs to include the full path. Eg. http://www……
In the code below, HTTP-EQUIV="refresh" tells the browser to begin executing the client pull. The code also indicates the amount of time (in seconds) the browser will wait before going back to your Web server to retrieve the page. You must also give the URL for the page's new location. This URL has to be the absolute reference; that is, you can't use relative links such as URL="new.htm". And for visitors whose browsers don't support client pull (like Netscape's Navigator 1.0), you can include text providing them with the new URL, as I did in the code below.
<HTML>
<META HTTP-EQUIV="refresh"
CONTENT="5; URL=http://www.companyname.com/restaurants/new.htm">
This page has moved to http://www.companyname.com/restaurants/new.htm. Your browser should take you there in about 5 seconds.
</HTML>
Client pull also lets you reload the same page. To do this, simply omit the URL. Sites such as CNN's and others that are frequently updated use this technique to force browsers to refresh their views periodically.
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi North America Server" by "[email protected]" for "http://www.company.com" on "1997.06.03T12:28-0500" r(n 0 s 0 v 0 L 1))'>