METATAGS

todo esto esta robado de muchos sitios


Código javascript para agregar a favoritos

<a href="javascript:window.external.AddFavorite('http://www.BBC.co.uk','Titulo del sitio');">Agregar a favoritos</a>

Código javascript para hacer página de inicio

<a href="http://www.BBC.co.uk" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.bbc.co.uk');"
style="cursor: hand">Hacer página de inicio</a>


Etiquetas META

La etiqueta <meta> provee información sobre la página web. A diferencia de una etiqueta normal HTML, la etiqueta meta no afecta la visibilidad de la página. En realidad provee información sobre el autor del documento, cada cuanto se actualiza, de que trata la página y que palabras claves (keywords) representa el contenido de la página.
Muchos motores de búsqueda (search engines) usan esta información para crear sus índices.

Uno de los meta más importante para los motores de búsqueda son los "Meta Keywords" y "Meta Description". Para los "Meta Keywords" recuerda usar palabras que describan el contenido de tu página. Se sabio y no trates de hacer trampa colocando palabras para tratar de aumentar tu "ranking", pues actualmente los motores de búsqueda poseen funciones para detectar este tipo de fraude. Cuando vayas a escribir la descripción en el "Meta Description", ten en cuenta estos mismo detalles. Trata de ser claro.

Meta Keywords

<META NAME="keywords" CONTENT="frutas, manzana, naranjas, pera"> Los "keywords" son palabras claves que describen el contenido de tu página web.

Meta Description

<META NAME="description"CONTENT="Ventas de frutas frescas a través de internet."> La descripción de tu página es muy importante.
Debes saber que la mayoría de los motores de búsqueda solo toman los primeros 150 caracteres de la descripción. Así que debes colocar una descripción bastante concisa y efectiva.

Meta Redirect

<META HTTP-EQUIV="refresh" CONTENT="10; url=http://www.ecodig.com">
Con este meta podemos redireccionar al usuario de una pagina a otra. Por ejemplo: En esta META de arriba, al cabo de 10 segundos el usuario será trasladado a www.ecodig.com

Meta Window-target

<META HTTP-EQUIV="Window-target" CONTENT="_top">
Se usa para mantener la página web fuera del marco (frame).

Los siguientes meta se describen por sí solo

<META NAME="Author" CONTENT="Martin Palermo">

<META NAME="Date" CONTENT="May 15, 2007">

<META NAME="Copyright" CONTENT="2000-2007 lodepablo. Todos los derechos reservados.">

<META HTTP-EQUIV="expires" CONTENT= "thu, 12 JUL 2007 00:06:00 EST">
El navegador carga la página directamente del cache. Una vez expire la fecha el navegador carga la página desde el servidor.

<META HTTP-EQUIV="expires" CONTENT="0">
Recarga la página web directamente al servidor.

META Cache-Control

<META HTTP-EQUIV="Cache-Control" CONTENT ="no-cache">
Evita que la página web sea cargada al cache por el servidor o el navegador.

Si deseas que todas las paginas sean indexadas utiliza el siguiente meta:

<META NAME="robots" CONTENT="all">

Pero si no lo deseas, puedes:

<META NAME="robots" CONTENT="noindex,nofollow">
No añade la pagina al motor de búsqueda.

También puedes usar:

<META NAME="robots" CONTENT="none"> ) <META NAME="robots" CONTENT="noindex,follow">
No añade la página inicial pero el robot continua el orden de los enlaces de tu site.

<META NAME="robots" CONTENT="index,nofollow">
Solo indexa la pagina inicial.

Indexar la página y seguir los links:
<meta name="robots" content="index, follow">

No indexar la página, pero seguir los links:
<meta name="robots" content="noindex, follow">

Meta Name REVISIT

Meta para determinar el plazo para la próxima visita del motor de búsqueda:
<META name="revisit-after" content="10 days">

Entender como funciona Google y usar meta tags es fundamental para lograr un buen posicionamiento en buscadores

Recuerda que las META TAGS más importantes y esenciales son el título y la descripción y debes introducir tus palabras claves más importantes en estos campos. Algunos buscadores no utilizan las Meta Tags para extraer la información de tu web, utilizan las primeras líneas de texto de tu página y es lo que aparece en sus listados. También debes utilizar en las primeras líneas del texto tus palabras claves con frecuencia y siempre relacionadas con el tema de tu web.


Useful HTML Meta Tags

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.

Meta Tags References

HTTP 1.1 RFC 2068
Vancouver Webpages on Meta Tags
Workshop Report on Spidering
Caching Tutorial for Web Authors and Webmasters
Remove a Site from Google
Tag NameExample(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.
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.
Also see EXPIRES.
Note: It may be better to specify cache commands in HTTP than in META statements, where they can influence more than the browser, but proxies and other intermediaries that may cache information.

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="&copy; 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.
RFC 1123 format = wkday "," SP date SP time SP "GMT"

wkday = (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
date = 2DIGIT SP month SP 4DIGIT ; day month year (e.g., 02 Jun 1982)
time = 2DIGIT ":" 2DIGIT ":" 2DIGIT ; 00:00:00 - 23:59:59
month = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)

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:
INDEX: search engine robots should include this page.
FOLLOW: robots should follow links from this page to other pages.
NOINDEX: links can be explored, although the page is not indexed.
NOFOLLOW: the page can be indexed, but no links are explored.
NONE: robots can ignore the page.
NOARCHIVE: Google uses this to prevent archiving of the page. See http://www.google.com/bot.html

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 Tags Resources - Web Center

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.

Placement of META tags

META tags should always be placed between the <head> tags, before the <body> tag.

META Description

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." />

META Keywords

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" />

META Content-Type

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" />

META Language

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 Author

<meta name="Author" content="Jimmy James" />

META Copyright

<meta name="copyright" content="&copy; 2000-2003 ABC Co." />

META Refresh

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.

META Cache-Control

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" />

META Expires

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" />

META Pragma

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.

META Robots

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 Tag to Get Rid of Microsoft Smart Tags

<meta name="MSSmartTagsPreventParsing" content="true" />

Designate a Favicon

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" />