martin2k

The META Tag

HomeForumTutorials Tags:
 
 

Name

Meta

Description

This tag is used to describe meta information about the page.  Multiple META tags can be used.  META tag must be contained within the HEAD tag.

Attributes

CONTENT

Used in conjunction with the http-equiv and name attributes to supply the value.

HTTP-EQUIV

Can be set to one of the following:

Value Meaning content Example
content-type Specifies the type of document text/html; charset=windows-1252
expires Specifies the expiration date of the document.  This causes the browser to reload the document after the set date. Tue, 17 Oct 2006 21:01:21 GMT
refresh Causes the browser to automatically reload the document after the specified number of seconds 50
set-cookie Sets the name and value for a persistent cookie name=value;expires=Tuesday, 17-Oct-06 21:06:21 GMT; path=/

NAME

Can be set to one of the following:

Value Meaning content Example
author Sets the name of the document's author Martin Allen
description Specifies the description of the document.  This is used by some search engines to describe the site in the listings. Describes how to use the META tag
keywords Specifies words used to describe the site.  These must be separated by a space.  Some search engines use these words to display your site if the user types them as search terms.  The more keywords you specify, the more likely your site will appear in the results. meta html tags tag head attributes
generator A META tag is usually created by HTML editors to show that it was used to create the document HTML Editor 1.02.0007 by Martin Allen 2000
revised Records when the page was revised 17 Oct 2006

Related Tags

META tags are used within the HEAD tag.

Example

Code

<meta http-equiv="refresh" content="50">

<meta name="description" content="martin2k">

<meta name="generator" content="Microsoft FrontPage 4.0">

Bibliography

http://www.html-reference.com/META_httpequiv_expires.htm

http://www.html-reference.com/META_httpequiv_setcookie.htm

http://www.tizag.com/htmlT/meta.php


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Tuesday 17 October 2006 09:56:09 PM +0100.