SEARCH OUR SITE
HOME TUTORIALS RESOURCES SEARCH ABOUT US CONTACT US HELP
 Guide to Learning HTML - Tutorial - Meta Tags
Meta Tags
The META tag belongs in the header of an HTML document. Its primary use is to provide information that is not seen directly in the web page. The tag itself is very simple. It contains two parts, a name for a piece of information, and the information itself. The general format of a META tag is as follows:
<META NAME = "type of information" CONTENT = "information itself">
It should be put inside <head> and </head>

Providing indexing information
The META tag is used to provide information to search engines like WebCrawler and to make a page automatically reload.
The search engine looks for words in the headings, titles, etc. of a web page, and uses them as keywords. It then uses the first few lines of text from the page as the description.
<html>
<head>
<META NAME = "keywords" CONTENT = "HTML tutorial, learn HTML">
<META NAME = "description" CONTENT = "Introduction to HTML">
<title>Guide to Learning HTML</title>
</head>
</html>

Sending the browser to a new URL
A META may be used to send the browser to a new URL. You may have visited a web site that has moved, where the old web site sends you to the new location after a short wait. This is done by providing what is called an HTTP-EQUIV, instead of a NAME.
<html>
</head>
<META HTTP-EQUIV = "REFRESH" CONTENT = "10; URL=meta.htm#Refresh">
<title>Reload</title>
</head>
<body>
This page will send you back after 10 seconds.If it doesn't, use <a href="meta.htm">this link</A>.
</body>
</html>
View the page
The number, in this case 10, represents the number of seconds before the page refreshes. Make sure that you allow enough time for all the text and images to load.


Choose a topic
 Basic HTML
  - Basic
  - Background
  - Links
  - Images
 Intermediate HTML
  - Font Size
  - Text
  - Lists
  - Background Music
 Advanced HTML
  - Tables
  - Frames
  - Meta Tag
 Quick Reference
  - HTML Tags
  - Special Characters
 Location: /28461/blank.htm
PREVIOUS PAGE NEXT PAGE

| Home | Tutorials | Resources | Search | About Us | Contact Us | Help |


This web site is best viewed with 800 x 600 High Color,
Internet Explorer 4.0 or Netscape 4.0 or later versions.
This entire site, except for licensed resources,
Copyright © 1999 by Team28461 All rights reserved.