Foros del Web » Programando para Internet » Javascript »

META TAGS ?? Cómo hago????

Estas en el tema de META TAGS ?? Cómo hago???? en el foro de Javascript en Foros del Web. El siguiente código lo sustraje de un sitio público y me dicen que con él puedo crear los META TAG's ... ¿Puede alguien cortarlo, pegarlo, ...
  #1 (permalink)  
Antiguo 22/02/2003, 14:37
(Desactivado)
 
Fecha de Ingreso: noviembre-2002
Mensajes: 124
Antigüedad: 21 años, 5 meses
Puntos: 0
META TAGS ?? Cómo hago????

El siguiente código lo sustraje de un sitio público y me dicen que con él puedo crear los META TAG's ...

¿Puede alguien cortarlo, pegarlo, probarlo y luego decirme para qué sirve cada uno de os parámetros que allí se muestran?

Es que tengo un sitio pero no se cómo hacer para que pueda ser encontrado a través de los motores de búsqueda ... ¿Alguien sabe? ...


Aquí va el código

***********

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Advanced META Tag Generator</title>
</head>

<body>

<!-- TWO STEPS TO INSTALL ADVANCED META TAG GENERATOR:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function create(form) {
if (confirm("Are you sure?")) {
form.story.value = "Advanced Meta Tag Generator \n" +
"author: Daniel Toljaga (http://www.bosniak.com) \n" +
"Instructions: Simply copy the following lines of code and insert them " +
"between the <HEAD> and </HEAD> tags in your HTML document. That's it! \n\n";
if (form.input1.value != "") {
form.story.value +="<META NAME=\"Title\" CONTENT=\"" +
form.input1.value + "\">\n";
}
if (form.input2.value != "") {
form.story.value +="<META NAME=\"Author\" CONTENT=\"" +
form.input2.value + "\">\n";
}
if (form.input3.value != "") {
form.story.value +="<META NAME=\"Subject\" CONTENT=\"" +
form.input3.value + "\">\n";
}
if (form.input4.value != "") {
form.story.value +="<META NAME=\"Description\" CONTENT=\"" +
form.input4.value + "\">\n";
}
if (form.input5.value != "") {
form.story.value +="<META NAME=\"Keywords\" CONTENT=\"" +
form.input5.value + "\">\n";
}
if (form.input6.value != "") {
form.story.value +="<META NAME=\"Generator\" CONTENT=\"" +
form.input6.value + "\">\n";
}
if (form.input7.value != "") {
form.story.value +="<META NAME=\"Language\" CONTENT=\"" +
form.input7.value + "\">\n";
}
if (form.input8.value != "") {
form.story.value +="<META NAME=\"Expires\" CONTENT=\"" +
form.input8.value + "\">\n";
}
if (form.input9.value != "") {
form.story.value +="<META NAME=\"Abstract\" CONTENT=\"" +
form.input9.value + "\">\n";
}
if (form.input10.value != "") {
form.story.value +="<META NAME=\"Copyright\" CONTENT=\"© " +
form.input10.value + "\">\n";
}
if (form.input11.value != "") {
form.story.value +="<META NAME=\"Designer\" CONTENT=\"" +
form.input11.value + "\">\n";
}
if (form.input12.value != "") {
form.story.value +="<META NAME=\"Publisher\" CONTENT=\"" +
form.input12.value + "\">\n";
}
if (form.input13.value != "") {
form.story.value +="<META NAME=\"Revisit-After\" CONTENT=\"" +
form.input13.value + " \Days\">\n";
}
if (form.input14.value != "") {
form.story.value +="<META NAME=\"Distribution\" CONTENT=\"" +
form.input14.options[form.input14.selectedIndex].value + "\">\n";
}
if (form.input15.value != "") {
form.story.value +="<META NAME=\"Robots\" CONTENT=\"" +
form.input15.options[form.input15.selectedIndex].value + "\">\n";
}
}
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<div align="center">
<center>
<p align="left"> </p>
<table class=normal WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td><center><font face="verdana" size="4">Advanced META Tag Generator</font></center>
<form>
<div align="center"><center><table class=normal BORDER="0" CELLPADDING="2">
<tr>
<td>Title:</td>
<td><input TYPE="text" NAME="input1" SIZE="40"></td>
</tr>
<!-- The author META tag defines the name of the author of the document being read. -->
<tr>
<td>Author:</td>
<td><input TYPE="text" NAME="input2" SIZE="40"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input TYPE="text" NAME="input3" SIZE="40"></td>
</tr>
<tr>
<td>Description:</td>
<td><input TYPE="text" NAME="input4" SIZE="40"></td>
</tr>
<tr>
<td>Keywords:</td>
<td><input TYPE="text" NAME="input5" SIZE="40"></td>
</tr>
<tr>
<td>Generator:</td>
<td><input TYPE="text" NAME="input6" SIZE="40"></td>
</tr>
<tr>
<td>Language:</td>
<td><input TYPE="text" NAME="input7" SIZE="40"></td>
</tr>
<!-- The expires META tag defines the expiration date and time of the document being
indexed and requires RFC1123 date format, for example: Thu, 04 Oct 2010 14:21:20 GMT -->
<tr>
<td>Expires:</td>
<td><input TYPE="text" NAME="input8" SIZE="40"></td>
</tr>
<!-- The abstract META tag is a one line sentence which gives an overview of the entire webpage -->
<tr>
<td>Abstract:</td>
<td><input TYPE="text" NAME="input9" SIZE="40"></td>
</tr>
<!-- Copyright: no need to add ©, it will be added automatically -->
<tr>
<td>Copyright:</td>
<td><input TYPE="text" NAME="input10" SIZE="40"></td>
</tr>
<!-- Designer = Webmaster -->
<tr>
<td>Designer:</td>
<td><input TYPE="text" NAME="input11" SIZE="40"></td>
</tr>
<!-- Publisher: Company that publishes material being read or sold on a web site -->
<tr>
<td>Publisher:</td>
<td><input TYPE="text" NAME="input12" SIZE="40"></td>
</tr>
<!-- The Revisit META tag defines how often a search engine or spider should
come to your website for re-indexing. For example: 2 Days, 3 Days, 4 Days, etc.
Note: Just ad number(s), word Days will be added automatically -->
<tr>
<td>Revisit-After:</td>
<td><input TYPE="text" NAME="input13" SIZE="40"></td>
</tr>
<!-- Distribution: Global (indicates that your webpage is intended for
mass distribution to everyone), Local (intended for local distribution
of your document), and IU - Internal Use (not intended for public distribution). -->
<tr>
<td>Distribution:</td>
<td><select NAME="input14" size="1">
<option VALUE="" SELECTED>Select One</option>
<option VALUE="Global">1. Global</option>
<option VALUE="Local">2. Local</option>
<option VALUE="IU">3. Intern Use</option>
</select></td>
<tr>
<td>Robots:</td>
<td><select NAME="input15" size="1">
<option VALUE="" SELECTED>Select One</option>
<option VALUE="All">1. All</option>
<option VALUE="None">2. None</option>
<option VALUE="Index">3. Index</option>
<option VALUE="No Index">4. No Index</option>
<option VALUE="Follow">5. Follow</option>
<option VALUE="No Follow">6. No Follow</option>
</select></td>
</tr>
</tr>
</table>
</center></div><blockquote>
<p><input TYPE="button" VALUE="Create META tags" ONCLICK="create(this.form)"> <input
TYPE="reset" VALUE="Clear All"> <textarea WRAP NAME="story" ROWS="12" COLS="65"></textarea>
</p>
</blockquote>
</form>
</td>
</tr>
</table>
</center>
</div>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 8.47 KB -->
</body>

</html>


¿Fácil verdad?

Saludos
  #2 (permalink)  
Antiguo 22/02/2003, 17:45
 
Fecha de Ingreso: febrero-2003
Ubicación: Lima,Peru
Mensajes: 8
Antigüedad: 21 años, 2 meses
Puntos: 0
Mensaje

Hola Pipumpam
lel codigo que copiaste genera meta tags con solo llenar los campos, pues de resulta un codigo con los codigos meta con parametros llenos.
En cuanto au uso voy a copiar lo que se dijo
en :http://www.forosdelweb.com/showthrea...hreadid=114676

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
sirve para explicar a los navegadores que están ante un documento HTML codificado en Europeo Occidental (ISO). Útil para que los usuarios puedan ver acentos, ñ y ç.

<META NAME="description" CONTENT="descripción del contenido de la web">

Esto es la descripción para buscadores.

<META NAME="keywords" CONTENT="palabrejas para que nos busquen">

Esto son las palabras clave.

<META NAME="robots" CONTENT="index,follow">

Aquí le dices a los crawlers (arañas) que indexen tu web y sigan los links.

<META NAME="expires" CONTENT="0">

Aquí le dices que la página ya ha caducado (lo que forzará el navegador a recargarla la próxima vez)

<META NAME="rating" CONTENT="General">

Esto es para indicar que no es "para adultos", que todo el mundo la puede ver.

<META NAME="revisit-after" CONTENT="2 days">

(supongo que será para avisar a los robot que se den otra vuelta por aquí pasados tres días, no?) Exacto

<META NAME="owner" CONTENT="el capo de la web ">

Innecesaria. Se suele usar mas AUTHOR, que indica el autor de la web.

<META HTTP-EQUIV="Content-Language" CONTENT="ES">

Aquí le dices el idioma, deben ser 2 letras acordes a la ISO 639 (creo que era ese número)

<META HTTP-EQUIV="pragma" CONTENT="no-cache">

(Qué el contenido no se guarde en la caché de los PCs?) Exacto

<META NAME="expires" CONTENT="0">

Aquí le dices que la página ya ha caducado (lo que forzará el navegador a recargarla la próxima vez)


<META HTTP-EQUIV="pragma" CONTENT="no-cache">

permite que la web no sea guardada en el cache de la pc, es decir no aparecera en el historial como visitada.


Existen mucho mas codigos meta de poco uso pero los mas importantes son estos.

espero que esto te aclare algo.

ok
  #4 (permalink)  
Antiguo 27/02/2003, 14:40
 
Fecha de Ingreso: febrero-2003
Ubicación: Lima,Peru
Mensajes: 8
Antigüedad: 21 años, 2 meses
Puntos: 0
De acuerdo correccion

la direccion de registro en buscadores correcta de webxperto es>
http://www.webexperto.com/buscadores/

mil disculpas
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:22.