Foros del Web » Creando para Internet » HTML »

[SOLUCIONADO] >> Validación (X)HTML <<

Estas en el tema de >> Validación (X)HTML << en el foro de HTML en Foros del Web. Hola amigos de Foros del Web. Ahora si creo que está completa mi pregunta He hecho la validación w3c a mi página y da los ...
  #1 (permalink)  
Antiguo 18/09/2005, 10:17
Avatar de seoista  
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 meses
Puntos: 59
Pregunta >> Validación (X)HTML <<

Hola amigos de Foros del Web.

Ahora si creo que está completa mi pregunta


He hecho la validación w3c a mi página y da los siguientes errores, que al no saber inglés, no se interpretar:

1.- Error Line 10 column 57: end tag for "link" omitted, but OMITTAG NO was specified.
<link rel="stylesheet" href="bordes.css" type="text/css">
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

2.- Info Line 10 column 0: start tag was here.
<link rel="stylesheet" href="bordes.css" type="text/css">

3.- Error Line 162 column 7: required attribute "type" not specified.
<script>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

4.- Error Line 170 column 23: character ";" not allowed in attribute specification list.
for(var a=0;a<As.length;a++) {

5.- Error Line 170 column 23: element "As.length" undefined.
for(var a=0;a<As.length;a++) {
You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

6.- Error Line 188 column 8: end tag for "As.length" omitted, but OMITTAG NO was specified.
</script>

7.- Info Line 170 column 13: start tag was here.
for(var a=0;a<As.length;a++) {

8.- Error Line 190 column 107: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
...lapse:collapse; border-color:#000000">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

9.- Error Line 192 column 176: end tag for "font" omitted, but OMITTAG NO was specified.
...de Septiembre de 2005&nbsp;&nbsp;</td>

10.- Info Line 192 column 77: start tag was here.
...apse:collapse; border-color:#000000"><font class="letra4">&nbsp;&nbsp;Actuali

¿Seríais tan amables de hacerme una interpretación de estos errores?

Muchas gracias por adelantado.

Saludos
__________________
· No contesto por M.P.
  #2 (permalink)  
Antiguo 18/09/2005, 10:28
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola seoista

Te contesto hasta donde soy capaz:

1.- Te falta cerrar el tag
<link rel="stylesheet" href="bordes.css" type="text/css" />

2.- Consecuencia del 1

3.- Falta el tipo de script
<script type="text/css">

4 a 7.- Estás intentando validar código JavaScript, por eso se producen errores. Ponlo así:

<script type="text/css">
<!--
alert('hola');
-->
</script>

Los demás errores no se porque te salen. Quizás si pones las líneas de código se me ilumine la bombilla.

Saludos,
  #3 (permalink)  
Antiguo 18/09/2005, 11:11
Avatar de seoista  
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 meses
Puntos: 59
Hola JavierB, este es el código completo:

Código:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>

<title> ALBUM DE FOTOS </title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" href="bordes.css" type="text/css">

<style type="text/css">
<!--
	body,html
		{margin-top: 10px;
		 margin-left: 0px;
		 margin-right: 0px;}
body,html
		{overflow-x: hidden;
		 overflow-y: hidden;}

	body,html
		{background-color: #eeeeee;}
	.letra
		{color: #ff0000;
		 font-size: 15px;
		 font-family: verdana;
		 font-weight: normal;
		 text-decoration: none;
		 font-weight: bold;}
	.letra1
		{color: #0000ff;
		 font-size: 10px;
		 font-family: verdana;
		 font-weight: normal;
		 text-decoration: none;
		 font-weight: normal;}
	.letra2
		{color: #0000ff;
		 font-size: 15px;
		 font-family: verdana;
		 font-weight: normal;
		 text-decoration: none;
		 font-weight: normal;}
	.letra3
		{color: #0000ff;
		 font-size: 12px;
		 font-family: verdana;
		 font-weight: normal;
		 text-decoration: none;
		 font-weight: normal;}
	.letra4
		{color: #000000;
		 font-size: 9px;
		 font-family: verdana;
		 font-weight: normal;
		 text-decoration: none;
		 font-weight: normal;}
	a:link
		{color: #0000ff;
		 text-decoration: none;
		 font-family: arial;
		 font-size: 20px;
		 font-weight: normal;}
	a:visited
		{color: #0000ff;
		 text-decoration: none;
		 font-family: arial;
		 font-size: 20px;
		 font-weight: normal;}
	a:hover
		{color: #ff0000;
		 text-decoration: none;
		 font-family: arial;
		 font-size: 20px;
		 font-weight: normal;}
	a:active
		{color: #ff0000;
		 text-decoration: none;
		 font-family: arial;
		 font-size: 20px;
		 font-weight: normal;}
	a.estilo:link
		{color: #000000;
		 text-decoration: none;
		 font-family: verdana;
		 font-size: 9px;
		 font-weight: normal;}
	a.estilo:visited
		{color: #000000;
		 text-decoration: none;
		 font-family: verdana;
		 font-size: 9px;
		 font-weight: normal;}
	a.estilo:hover
		{color: #ff0000;
		 text-decoration: none;
		 font-family: verdana;
		 font-size: 9px;
		 font-weight: normal;}
	a.estilo:active
		{color: #000000;
		 text-decoration: none;
		 font-family: verdana;
		 font-size: 9px;
		 font-weight: normal;}
--> 
</style>

<style type="text/css">
<!--
	.corchetes
		{color: #0000ff;
		text-decoration:none;
		font-size: 20px;
		width:3px;
		visibility:hidden;
		display:inline;
		font-weight: bold;}
-->
</style> 

</head>

<body>

	<div align="center">

<table border="0" cellspacing="0" cellpadding="0">
<tr> 
<td class="borde2"><img src="alsapa.png" alt="" /></td>
</tr>
</table>
<p></p>

<table border="0" cellspacing="0" cellpadding="0">
<tr><td><img src="camara-digital1.jpg" alt="" /></td>
<td><img src="album_fotos.gif" alt="" /></td>
<td><img src="camara-digital.jpg" alt="" /></td>
</tr>
</table>
<p></p>
<p></p>

<table class="borde" width="70%" border="5" style="border-collapse:collapse; border-color:#d2691e">
<tr>
<td class="borde1" align="center" style="border-collapse:collapse; border-color:#d2691e; background-color:#b0c4de" title="Estas son mis vacaciones en ''Tenerife''"><a href="tenerife.html">Vacaciones en Puerto de la Cruz (Tenerife)</a></td>
<td class="borde1" align="center" style="border-collapse:collapse; border-color:#D2691E; background-color:#b0c4de"><font class="letra3">Verano 2.003</font></td>
</tr>

<tr>
<td class="borde1" align="center" style="border-collapse:collapse; border-color:#d2691e; background-color:#add8e6" title="Estas son mis vacaciones en ''Roquetas de Mar''"><a href="roquetas.html">Vacaciones en Roquetas de Mar (Almería)</a></td>
<td align="center" style="border-collapse:collapse; border-color:#D2691E; background-color:#add8e6"><font class="letra3">Verano 2.004</font></td>
</tr>

<tr> 
<td class="borde1" align="center" style="border-collapse:collapse; border-color:#d2691e; background-color:#b0c4de" title="Estas son mis vacaciones en ''Palma de Mallorca''"><a href="mallorca.html">Vacaciones en Palma de Mallorca</a></td>
<td align="center" style="border-collapse:collapse; border-color:#D2691E; background-color:#b0c4de"><font class="letra3">Verano 2.005</font></td>
</tr>
</table>

<script> 

function insertAfter(parent, node, referenceNode) { 
    parent.insertBefore(node, referenceNode.nextSibling); 
} 

var As=document.getElementsByTagName("A"); 
var corchete1,corchete2; 
for(var a=0;a<As.length;a++) { 
    corchete1=document.createElement("DIV"); 
    corchete2=document.createElement("DIV"); 
    corchete1.appendChild( document.createTextNode("[ ") ); 
    corchete2.appendChild( document.createTextNode(" ]") ); 
    corchete1.className=corchete2.className="corchetes"; 
    As[a].parentNode.insertBefore( corchete1 , As[a] ); 
    insertAfter( As[a].parentNode, corchete2, As[a] ); 
    As[a].onmouseover=function() { 
        this.previousSibling.style.visibility="visible"; 
        this.nextSibling.style.visibility="visible"; 
    } 
    As[a].onmouseout=function() { 
        this.previousSibling.style.visibility="hidden"; 
        this.nextSibling.style.visibility="hidden"; 
    } 
} 

</script> 

<p><table border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse; border-color:#000000">
<tr> 
<td bgcolor="#add8e6" style="border-collapse:collapse; border-color:#000000"><font class="letra4">&nbsp;&nbsp;Actualizada el d&iacute;a 17 de Septiembre de 2005&nbsp;&nbsp;</td>
</tr>
</table></p>

	</div>

</body>
</html>
Muchas gracias por interesarte .

Saludos

PD1.- Mañana te contestaré. Ahora estoy en el trabajo y salgo dentro de un momento.
PD2.- También lo puedes ver en mi firma (Seoista).
__________________
· No contesto por M.P.

Última edición por seoista; 18/09/2005 a las 11:18
  #4 (permalink)  
Antiguo 18/09/2005, 11:30
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Sigamos con el tema:

8.- Tienes la tabla dentro de etiquetas de párrafo <p></p> Quitalas y deja solo la tabla.

9 y 10.- Has puesto una etiqueta <font class="letra4"> pero no la has cerrado </font>

Saludos,
  #5 (permalink)  
Antiguo 19/09/2005, 04:07
Avatar de seoista  
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 meses
Puntos: 59
Hola otra vez JavierB

Pasa una cosa muy rara (por lo menos a mí me lo parece).

Si válido mi página en local, la válida bien:
Cita:
Result: Passed validation
File: C:\Alberto\Viajes\index.html
Encoding: iso-8859-1
Doctype: XHTML 1.0 Transitional
Root Namespace: http://www.w3.org/1999/xhtml

Note: The Validator XML support has some limitations.

This Page Is Valid XHTML 1.0 Transitional!
Si la válido desde el hosting (gratuito) "alsapa.95mb.com" (no válida como en local), dice lo siguiente:
Cita:
Sorry, this type of URL scheme () is not supported by this service. Please check that you entered the URL correctly.

URLs should be in the form: http://validator.w3.org/

If you entered a valid URL using a scheme that we should support, please let us know as outlined on our Feedback page. Make sure to include the specific URL you would like us to support, and if possible provide a reference to the relevant standards document describing the URL scheme in question.

Remember that you can always save the page to disk and Validate it using the File Upload interface.
¡No entiendo!

Gracias por soportarme .

Saludos
__________________
· No contesto por M.P.
  #6 (permalink)  
Antiguo 19/09/2005, 09:06
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Rehola.

He pasado tu página por el validador y me da un error distinto al que pones tú

http://validator.w3.org/check?uri=ht...sapa.95mb.com/

el error de la línea 128 es el que ya te comenté: <script type="text/javascript">

Acuerdate también de "comentar" el código JavaScript (<!-- codigo -->)

Saludos,
  #7 (permalink)  
Antiguo 19/09/2005, 23:10
Avatar de seoista  
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 meses
Puntos: 59
Hola JavierB.
Cita:
Iniciado por JavierB
Rehola.

He pasado tu página por el validador y me da un error distinto al que pones tú

http://validator.w3.org/check?uri=ht...sapa.95mb.com/

el error de la línea 128 es el que ya te comenté: <script type="text/javascript">

Acuerdate también de "comentar" el código JavaScript (<!-- codigo -->)
Ya, ya lo veo, pero las lineas 127 al 134 las pone el hosting , no las he puesto yo:
Cita:
<!-- XPanel header -->
<script>
win=window.open('http://www.kingarticles.com/visits/index.php','PoPUnder');
window.focus();

</script>
<!-- /XPanel header -->
(sería por eso que me las validaba en local) y no las puedo tocar, ni borrar.

Así que creo que esta validada la página, a excepto de este percance, ¿no crees?.

Muchas gracias por la ayuda que me has brindado, te lo agradezco.

Un abrazo
__________________
· No contesto por M.P.
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 02:34.