|
|
Meta Tags - HTML Meta tags - Keyword - Refresh - RedirectMeta tags are generally used to include information about a document such as author name, creation date, copyright information etc. They always placed between the <HEAD> tags of an HTML document. Each Meta tag has two important attributes:
<META HTTP-EQUIV="some_name" CONTENT="some_content"> OR <META NAME="some_name" CONTENT="some_content"> <META HTTP-EQUIV>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html"> <META HTTP-EQUIV="EXPIRES" CONTENT="May 1, 2002 00:00:00 EST"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache"> <META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="hi"> <META HTTP-EQUIV="REFRESH" CONTENT="5"> Note that all the META tags with HTTP-EQUIV attributes also contain the CONTENT attribute. The HTTP-EQUIV="REFRESH" demands more attention here, so let us have a detailed look at it. <META HTTP-EQUIV="REFRESH" CONTENT="2; URL=new.html"> This takes the user to new.html after 2 seconds. A cheap trick is to construct a looping (or non-looping) slide show making use of these tags. Let's say you have three html pages named slide1.html, slide2.html and slide3.html. You can make a looping slide show by including the appropriate META tag in each document. slide1.html contains<META HTTP-EQUIV="REFRESH" CONTENT="10; URL=slide2.html"> slide2.html contains <META HTTP-EQUIV="REFRESH" CONTENT="10; URL=slide3.html"> slide3.html contains <META HTTP-EQUIV="REFRESH" CONTENT="10; URL=slide1.html"> To start the slide-show, load slide1.html in the browser. After 10 seconds, slide1.html is replaced by slide2.html, which is again replaced by slide3.html after 10 seconds. Finally, after another 10 seconds, slide1.html replaces slide3.html and thus, the slide-show keeps on looping. Note that the <META> tag is placed in the head section of each document. <META NAME>
<META NAME="KEYWORDS" CONTENT="movies, hollywood, actors"> <META NAME="COPYRIGHT" CONTENT="2001, Some_Company_Name"> <META NAME="DESCRIPTION" CONTENT="Information on the greatest movies ever"> <META NAME="AUTHOR" CONTENT="your_name"> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
Page contents: Meta tag, HTML meta tags, meta tag optimization, meta tag keyword, search engine meta tag, meta tag refresh, redirect meta tag
Page URL: http://www.webdevelopersnotes.com/tutorials/adhtml/ meta_tags_html_meta_tags_keyword_refresh_redirect.php3
|
|