todo esto esta robado de muchos sitios
|
These are the HTML Meta Tags that I find useful or interesting. I am not intending to document all possible Meta Tags here. Check the references for more detail and other Meta Tags.
Tag Name | Example(s) | Description |
---|---|---|
Author | <META NAME="AUTHOR" CONTENT="Tex Texin"> | The author's name. |
cache-control | <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> | HTTP 1.1. Allowed values = PUBLIC | PRIVATE | NO-CACHE | NO-STORE.
Public - may be cached in public shared caches Private - may only be cached in private cache no-Cache - may not be cached no-Store - may be cached but not archived
The directive CACHE-CONTROL:NO-CACHE indicates cached information should not be used and instead requests should be forwarded to the origin server.
This directive has the same semantics as the PRAGMA:NO-CACHE.
|
Content-Language | <META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="en-US,fr"> |
Declares the primary natural language(s) of the document. May be used by search engines to categorize by language. |
CONTENT-TYPE | <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"> |
The HTTP content type may be extended to give the character set. It is recommended to always use this tag and to specify the charset. |
Copyright | <META NAME="COPYRIGHT" CONTENT="© 2004 Tex Texin"> | A copyright statement. |
DESCRIPTION | <META NAME="DESCRIPTION"
CONTENT="...summary of web page..."> |
The text can be used when printing a summary of the document. The text should not contain any formatting information. Used by some search engines to describe your document. Particularly important if your document has very little text, is a frameset, or has extensive scripts at the top. |
EXPIRES | <META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT"> |
The date and time after which the document should be considered expired.
An illegal EXPIRES date, e.g. "0", is interpreted as "now".
Setting EXPIRES to 0 may thus be used to force a modification
check at each visit.
Web robots may delete expired documents from a search engine, or schedule a revisit.
HTTP 1.1 (RFC 2068) specifies that all
HTTP date/time stamps MUST be generated in Greenwich Mean Time (GMT) and in RFC 1123 format.
|
Keywords | <META NAME="KEYWORDS"
CONTENT="sex, drugs, rock & roll"> |
The keywords are used by some search engines to index your document in addition to words from the title and document body. Typically used for synonyms and alternates of title words. Consider adding frequent misspellings. e.g. heirarchy, hierarchy. |
PRAGMA NO-CACHE | <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> | This directive indicates cached information should not be used
and instead requests should be forwarded to the origin server.
This directive has the same semantics as the CACHE-CONTROL:NO-CACHE directive and
is provided for backwards compatibility with HTTP/1.0.
Clients SHOULD include both PRAGMA:NO-CACHE and CACHE-CONTROL:NO-CACHE when a no-cache request is sent to a server not known to be HTTP/1.1 compliant. HTTP/1.1 clients SHOULD NOT send the PRAGMA request-header. HTTP/1.1 caches SHOULD treat "PRAGMA:NO-CACHE" as if the client had sent "CACHE-CONTROL:NO-CACHE". Also see EXPIRES. |
Refresh | <META HTTP-EQUIV="REFRESH" CONTENT="15;URL=http://www.I18nGuy.com/index.html"> |
Specifies a delay in seconds before the browser automatically reloads the document. Optionally, specifies an alternative URL to load, making this command useful for redirecting browsers to other pages. |
ROBOTS |
<META NAME="ROBOTS" CONTENT="ALL">
<META NAME="ROBOTS" CONTENT="INDEX,NOFOLLOW"> <META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW"> <META NAME="ROBOTS" CONTENT="NONE"> |
CONTENT="ALL | NONE | NOINDEX | INDEX| NOFOLLOW | FOLLOW | NOARCHIVE"
default = empty = "ALL" "NONE" = "NOINDEX, NOFOLLOW" The CONTENT field is a comma separated list:
|
GOOGLEBOT | <META NAME="GOOGLEBOT" CONTENT="NOARCHIVE"> | In addition to the ROBOTS META Command above,
Google supports a GOOGLEBOT command. With it, you can tell
Google that you do not want the page archived, but allow other search engines to do so.
If you specify this command,
Google will not save the page and the page will be unavailable via its cache.
See Google's FAQ. |
META (<meta>) tags provide additional information about a web page. Search engines use some of the <meta> tag information. Other <meta> tags can be used by web servers.
META tags should always be placed between the <head> tags, before the <body> tag.
A "must have" for all web pages. Used by many search engines for indexing. The "description" <meta> tag is also commonly displayed by search engines as the summary of the web page. The "description" should be related to the contents of that particular page, not the entire site. One or two sentences are enough. You should not duplicate the <title> of the page.
<meta name="description" content="Ohlone College's women's basketball schedule for Spring 2003." />
A "must have" for all web pages. Used by many search engines for indexing. The "keywords" should be related to the contents of that particular page, not the entire site. Think about using misspelled words too. Keywords may be separated by a space or a comma or a comma followed by a space.
<meta name="keywords" content="women basketball schedule basket ball girl woman sports" />
Specifies the character encoding for the page. This tag is required on each XHTML page so it will validate properly.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
A variety of character encoding values are available. The one shown is common and appropriate for Ohlone College websites. Another commonly used encoding value is:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Declares to users the natural language of the web page.
Specify "English" language used for content of page:
<meta http-equiv="content-language" content="en" />
Specify "English - United States" language used for content of page:
<meta http-equiv="content-language" content="en-us" />
<meta name="Author" content="Jimmy James" />
<meta name="copyright" content="© 2000-2003 ABC Co." />
Use META Refresh to automatically change to another web page after a specified number of seconds. In this example, http://www.ohlone.edu/org/athletics/filename.html is the URL the page will display after 4 seconds have passed.
<meta http-equiv="refresh" content="4;URL=http://www.ohlone.edu/org/athletics/filename.html" />
For accessibility reasons, using this tag is not recommended since it can confuse users of assistive technologies.
Use the following META tag to prevent the page from caching. Being cached means that the page is stored on the local computer. Some web servers (such as AOL's web servers) cache pages. Caching makes pages display faster for users. It is best to disable cacheing using "no-cache" for pages that are updated frequently.
<meta http-equiv="Cache-Control" content="no-cache" />
This page expires on the date given, which means that the browser will use the cached version until the date is reached. Use a date in the past to expire content right away. Dates must be in Greenwich Mean Time (GMT) time, not PST or EST, using the format shown.
<meta http-equiv="Expires" content="Tue, 20 Aug 2014 14:25:27 GMT" />
Use this META tag to expire the page immediately:
<meta http-equiv="Expires" content="0" />
This is another way to control browser caching. To use this tag, the value must be "no-cache". When this is included in a document, it prevents Netscape Navigator from caching a page locally.
<meta http-equiv="Pragma" content="no-cache" />
The META Cache-Control, META Expires and META Pragma tags can be used as together to keep your content current - but beware: There are reports that Internet Explorer refuses the META tag instructions, and caches the files anyway.
A robot is a program used by search engines. It will visit a web page, index it, and then visit all the hyperlinks in that page, indexing them all. Search engines often send a robot to your site in order to add your site's pages to the search engine database.
You may not want certain pages on your site to appear in a search engine. These might be pages containing sensitive information, or those which should not be viewed outside of a frameset. You can use the META tag to provide instructions to robots visiting a page: You can tell them not to index the page, or not to follow any of the links on it, or both.
Here are examples of some of the META Robots tags you can use (use only one on a page):
<meta name="robots" content="noindex,nofollow" />
<meta name="robots" content="noindex,follow" />
<meta name="robots" content="index,nofollow" />
<meta name="robots" content="index,follow" /> <== default
The default action is to index the page and follow all links. It is not necessary to encode that META tag into your pages if that is the action you desire.
<meta name="MSSmartTagsPreventParsing" content="true" />
Using the <link> tag instead of the <meta> tag, designate a Favicon as follows:
<link rel="icon" type="image/x-icon" href="http://www.domain.edu/favicon.ico" />