[ acky.net logo ]




HTML

Santrex
Santrex

How to Insert META tags:

Author | Description | Expiration | Keywords | Refresh | Set-Cookie

What is a META tag?
Metadocument information -
The META tag specifies information about the document or creates an HTTP response header. The META tag has no effect on the appearance of the web page. It is intended for use by other programs, such as search engines or web browsers. META tags are always inserted into the <HEAD>..</HEAD> tags.

 


Description:  > Back > Top

The description META tag is a short, plain language description of the document. This is used by search engines to describe your document. If your document has very little text, is a frameset, or has extensive scripts at the top, you can use this tag to provide a description of a page for search engines.

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META NAME="description" CONTENT="Your one stop shop for web development.">
</HEAD>
<BODY>
</BODY>
</HTML>

Keywords:  > Back > Top

The keywords META tag is a list of words that are separated by a comma  to be used by search engines to index your document in addition to words from the title and document body. The search engine saves these keywords and uses them to attract more hits to your site.

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META NAME="keywords"
CONTENT="HTML, tags, reference, javascripts, etc">

</HEAD>
<BODY>
</BODY>
</HTML>

Author:  > Back > Top

The person's name who create the page or the site.

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META NAME="author"
CONTENT="Jeffrey Bouquio and Alex Osipov">

</HEAD>
<BODY>
</BODY>
</HTML>

Expiration:  > Back > Top

The expires field uses the date and time after which the document should be considered expired. An illegal date, such as "0" is interpreted as "now." Setting the Expires attribute to 0 may thus be used to force a modification check at each visit. Dates must be given in the following format in GMT.

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META HTTP-EQUIV="expires" CONTENT="Sun, 28 Dec 1997 09:32:45 GMT">
</HEAD>
<BODY>
</BODY>
</HTML>

Refresh:  > Back > Top

The refresh META tag specifies a delay, in seconds, before the browser automatically reloads the document. Optionally, specifies an alternative URL to load.

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=http:nextdoc.shtl">
</HEAD>
<BODY>
</BODY>
</HTML>

Set-Cookie:  > Back > Top

The Set-Cookie META tag sets a cookie in Netscape Navigator. Values with an expiration date are considered permanent and are saved to disk on exit.
http://www.netscape.com/newsref/std/cookie_spec.html

ex:

<HTML>
<HEAD>
<TITLE>Ack</TITLE>
<META HTTP-EQUIV="Set-Cookie"        CONTENT="cookievalue=abc;expires=Friday, 31-Dec-99 23:59:59 GMT; path=/">
</HEAD>
<BODY>
</BODY>
</HTML>

For more information about the META tag, see:
http://www.stars.com/Seminars/HTML/Head/meta.html