jump to main content

META Tags Reference

META tags should be placed in the HEAD of the HTML document, between the <HEAD> and </HEAD> tags. META tags have two possible attributes:

HTTP-EQUIV attributes
META tags with an HTTP-EQUIV attribute are equivalent to HTTP headers. 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.
<META HTTP-EQUIV="name" CONTENT="content">

NAME attributes
META tags with a NAME attribute are used for other types which do not correspond to HTTP headers. Sometimes the distinction is blurred. Some agents may interpret tags such as "keywords" declared as either "name" or as "http-equiv".
<META NAME="name" CONTENT="content">

The description is presented to the user along with the document's title as the result of a search.
<META NAME="description" CONTENT="Here is my page description.">

Space separated list of key words for indexing your document.
<META NAME="keywords" CONTENT="green trees, sunny skies">

Expiry Date
Used by browsers and proxies to delete documents from the cache, thus retrieving an updated copy.
<META HTTP-EQUIV="expires" CONTENT="date">

This is another way to control browser caching. To use this tag, the value must be "no-cache". When this is included in a document, it prevents Netscape Navigator from caching a page locally.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

This tag specifies the time in seconds before the Web browser reloads the document automatically. Alternatively, it can specify a different URL for the browser to load.
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.free-cgi.com">

The default HTML charset is ISO-8859-1 (Western European 8-bit). Thus this method is recommended for non-ISO-8859-1 character sets, as it will cause browsers to select the correct font for each page.
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">

This tag is meant to provide users who cannot control the robots.txt file at their sites. It provides a last chance to keep their content out of search services.

The filler is a comma separated list of terms:
INDEX means that robots are welcome to include this page in search services. FOLLOW means that robots are welcome to follow links from this page to find other pages. ALL means INDEX and FOLLOW, and NONE means NOINDEX and NOFOLLOW.

| Basic Structure | Multimedia | Links | Lists | Frames |
| Tables | Forms | Style Sheets | General Formatting |
| Color Names | Color Codes | Color Tester |
| ASCII Codes | Entities | META Tags |
| SQL Reference | Web Graphics |

Free-CGI.com is updated on a daily basis. New features and applications are added almost
every day. Free-CGI.com is always under construction. If you have any comments or
suggestions, please contact free-cgi. Thanks!

Donate $1 (or more) to Free-CGI

Copyright © 1995 - 2018 Free CGI. All rights reserved.