|
META tags go in
the head of the HTML file, between the <head>
and </head> tags. But what
do they do? That is the question!
Their first use
is to make an imprint on an HTML file. You can
put in the generator you used to make the file,
your name, or anything else you want. You simply
do it like this:
<meta name="anything"
content="anything">
but that isn't extremely useful. But, now we get
on to the second useage of meta tags. They can be
used to improve search engine rankings if they
are used like this:
<meta
name="description" content="file
description"> and
<meta name="keywords"
content="file keywords">
The first one
sets the description in a search engine, so
instead of:
Hello. My name is Joe Bloggs and I live in
Dullville. My hobbies
as a description - a search engine normally
indexes the first few lines of your page - you
can gave this:
Joe Bloggs' Home Page
The second tag sets keywords for the site - for
Joe Blogg's Home Page you might use Joe,
Bloggs, Home, Homepage, Hobbies, Dullville
and any others you can think of - when someone
types in one of these keywords into a search
engine, they've got a good chance of finding your
site.
If you wanted to use that description and those keywords, you would use:
<meta name="description" content"Joe Bloggs' Home Page"
<meta name="keywords" content"Bloggs, Home, Homepage, Hobbies, Dullville"
So, on to the
third usage. Lastly, META tags can be used for
redirection. Use this tag:
<meta http-equiv="refresh"
content="12; url=apage.html">
and the page would load the page 'apage.html'
after 12 seconds.
Well, that's the
basics of META tags. Hope you can make some use
out of them!
|