Foros del Web » Creando para Internet » HTML »

[WC3] Errores de Validación.

Estas en el tema de [WC3] Errores de Validación. en el foro de HTML en Foros del Web. Hola gente, queria saber si me podían ayudar con unos errores que tengo ya que no los entiendo... El Valiador me detecta 118 errores, jejeje ...
  #1 (permalink)  
Antiguo 18/01/2009, 16:16
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Información [WC3] Errores de Validación.

Hola gente, queria saber si me podían ayudar con unos errores que tengo ya que no los entiendo...

El Valiador me detecta 118 errores, jejeje pero son por ejemplo 10 del mismo error.. y bue...

Les pongo algunos errores que no entiendo que hay que arreglar en ellos...

Ahi van...

1)
Cita:
Error XML Parsing Error

* Line 11, column 68: XML Parsing Error: Opening and ending tag mismatch: link line 11 and head

… icon" href="http://www.example.com/f.png"></head>
--

2) De éste tengo como 40 iguales...

Cita:
# Line 53, column 7: XML Parsing Error: Opening and ending tag mismatch: a line 51 and body

</body></html>

--

3)
Cita:
# Line 11, column 67: end tag for "link" omitted, but OMITTAG NO was specified

…ut icon" href="http://www.example.com/f.png"></head>
--

4)
Cita:
# Line 18, column 361: end tag for "p" omitted, but OMITTAG NO was specified

…...</u></small></a></p></center></div>
--

5)
Cita:
# Line 49, column 215: end tag for "img" omitted, but OMITTAG NO was specified

…alt="Clarín" title="Ir a Example!"></a><a href="http://www.example.com.ar
--

6)
Cita:
* Line 11, column 67: end tag for "head" which is not finished

…ut icon" href="http://www.example.com/f.png"></head>
--

7)
Cita:
# Line 5, column 224: element "META" undefined

…TTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Cache-Control" CONTEN
--

8)
Cita:
# Line 5, column 197: there is no attribute "HTTP-EQUIV"

…ARGAS, FOROS, INFO"><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-E
--

9)
Cita:
# Line 16, column 187: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

…="Ir a otro sitio!">otrositio</a></li> <li><a href="http://www.otrositio.com" title="
--

10)
Cita:
* Line 16, column 425: end tag for element "ul" which is not open

… a sitioweb!">sitioweb</a></li></ul></center></div>
------------------------------------------------------------

Bueno si me pueden ayudar con algunos se los agradeceria muchisimo!!.

------------------------------------------------------------
Los errores estan tal cual como aparecen remarcados con ROJO los errores que me detecta el Validador.

Los errores en BORDO son el titulo del error que me muestra el validador.
------------------------------------------------------------

Por favor, lo re necesito..

Saludos!.
__________________
Adivino del Foro y Admirador de Sabios
  #2 (permalink)  
Antiguo 18/01/2009, 16:45
Avatar de Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: [WC3] Errores de Validación.

Buenas.
En el primero te falta cerrar la etiqueta:

icon" href="http://www.example.com/f.png" /></head>

Cambia eso y algunas cosas cambiarán. Para lo demás será mejor ver tu enlace, porque sin ver el código al completo será difícil.
__________________
Visita mi nueva web idplus.org
  #3 (permalink)  
Antiguo 18/01/2009, 17:22
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Hola Mik!!.

Es del favicon ese enlace, jeje lo puse tal cual muestra el validador..

En fin, ahora lo arreglo y lo vuelvo a analizar.

-

Che Mik!, jejeje recien valide el CSS y esta todo bien, sin errores jeje!!.

Ah, y fijate si me podes ayudar con el ultimo tema que postie en CSS...

--

Bueno si alguien me ayuda con los demas, estaria re agradecido!.
__________________
Adivino del Foro y Admirador de Sabios
  #4 (permalink)  
Antiguo 18/01/2009, 17:52
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Gente!!, de los 118 errores sólo me quedan 14.. Pero estos realmente nose porque pueden ser...

Les dejo algunos...

1) Este me lo repite varias veces....

Cita:
<META name="description" content="Descripcion de mi sitio" />

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. 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 "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
----------

2)
Cita:
…e="description" content="Descripcion de mi sitio" />

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).
----------

3)
Cita:
…le="Ir al ejemplo">Ejemplo</a></li> <li><a href="http://otroejemplo.com/" title="I

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

Esos son los que me quedan, pero sinceramente no los entiendo...

Alguien me puede explicar que hay que arreglar??

Les deje marcado con ROJO los errores que aparecen.. y bueno la decripcion abajo..

Porfis!!..

Saludos!.
__________________
Adivino del Foro y Admirador de Sabios
  #5 (permalink)  
Antiguo 18/01/2009, 18:06
Avatar de webosiris
Moderador egiptólogo
 
Fecha de Ingreso: febrero-2002
Ubicación: Luxor, Egipto
Mensajes: 10.725
Antigüedad: 22 años, 2 meses
Puntos: 998
Respuesta: [WC3] Errores de Validación.

1 y 2 te lo dice el mismo validador...
Cita:
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case)
cambia META por meta. En xhtml todos los elementos se escriben con minúsculas.

3 - The mentioned element is not allowed to appear in the context
pues necesitamos ver el contexto.....
__________________
Pasamos tus PSD a HTML

Pobre del que lo sabe todo, porque no tiene nada más que aprender ni razón para vivir. -
  #6 (permalink)  
Antiguo 18/01/2009, 18:31
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Ok, ahora lo pongo web, arreglo el 1 y 2 y pongo lo del 3.

Muchas gracias!.
__________________
Adivino del Foro y Admirador de Sabios
  #7 (permalink)  
Antiguo 18/01/2009, 18:39
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Listo ahora solo tengo 2 errores...

Cita:
document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

…a href="about.html"><p class="style3">Acerca de Misitio...</p></a></div>

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

---
Ese y bueno el de las Listas.. q es...
---

Cita:
<div id="mc" align="center"><br /><li><a href="http://www.ejemplo1.com" title="Ir a ejemplo!">ejemplo1</a></li> <li><a href="http://www.ejemplo2.com" title="Ir a ejemplo!">ejemplo2</a></li> <li><a href="http://www.ejemplo3.com/" title="Ir a ejemplo!">ejemplo3</a></li> <li><a href="http://www.ejemplo4.com" title="Ir a ejemplo!">ejemplo4</a></li></div>
Ese es el código que tengo... y me da este error.. --->>

__________

document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

…tle="Ir a ejemplo!">ejemplo</a></li> <li><a href="http://www.ejemplo.com

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>").
__________________
Adivino del Foro y Admirador de Sabios

Última edición por MasterXNicoX; 18/01/2009 a las 18:52
  #8 (permalink)  
Antiguo 18/01/2009, 18:41
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: [WC3] Errores de Validación.

Cita:
<meta name=".... />
la palabra 'meta'
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++
  #9 (permalink)  
Antiguo 18/01/2009, 18:54
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Si kseso, recien lo acabe de arreglar, jejeje.. Gracias Igual!.

Vos sabrás a que se refieren los otros dos errores que postie antes de tu respuesta??.

Son los últimos que me quedan.. jejeje
__________________
Adivino del Foro y Admirador de Sabios
  #10 (permalink)  
Antiguo 18/01/2009, 18:59
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: [WC3] Errores de Validación.

Me editaste tu mensaje, y ahora mi respuesta queda "como tonta"

El 1º: un elemento por naturaleza "inline" no puede alojar otros que son por definición "block".
Dentro de un enlace <a> no puedes meter un <p> o un <div>, etc

Y el 2º :
los <li> deben ir dentro de una lista desordenada (<ul>)
Cita:
<ul>
<li> .... </li>
<li> .... </li>
</ul>
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++
  #11 (permalink)  
Antiguo 18/01/2009, 19:03
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Cita:
Iniciado por El gran Kseso!
Me editaste tu mensaje, y ahora mi respuesta queda "como tonta"
No fué queriendo xD jejejeje :-p

-----

aaaa Okis okis, entendi lo de la <p> dentro del enlace...

Pero el otro, el de inline.. como puedo arreglarlo????
__________________
Adivino del Foro y Admirador de Sabios
  #12 (permalink)  
Antiguo 18/01/2009, 19:05
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: [WC3] Errores de Validación.

No, ese es el segundo.
El primero:
Cita:
a href="about.html"><p class="style3">Acerca de Misitio...</p></a></div>
Ahí tienes un párrafo dentro de un enlace.
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++
  #13 (permalink)  
Antiguo 18/01/2009, 19:12
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Jajajaja justo edito cuando respondes xD...

Ahora solo queda el del Inline, como podria arreglarlo??
__________________
Adivino del Foro y Admirador de Sabios
  #14 (permalink)  
Antiguo 18/01/2009, 19:19
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: [WC3] Errores de Validación.

si estás usando <p class="... > para darle un formato a ese enlace, aplica la class diréctamente al enlace o usa un <span>, depende de lo que mejor se ajuste a tus intereses:
Cita:
a class="style3" href="about.html">Acerca de Misitio...</a>
o bien:
Cita:
…a href="about.html"><span class="style3">Acerca de Misitio...</span></a>
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++
  #15 (permalink)  
Antiguo 18/01/2009, 19:25
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Aver... jejejeje espera que recien acabe de ver tu otra respuesta..
__________________
Adivino del Foro y Admirador de Sabios
  #16 (permalink)  
Antiguo 18/01/2009, 19:29
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Cita:
Validation Output: 1 Error

1. Error Line 22, Column 337: character data is not allowed here.

…" title="Ir a Ejemplo!">ejemplo!</a></li> <li><a href="http://www.ejemplo2.com

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
* putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
* forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
* using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
Ahora sólo me marca este error... el error dice que está entre los dos caracteres que dejé en rojo...

Porque puede ser??
__________________
Adivino del Foro y Admirador de Sabios
  #17 (permalink)  
Antiguo 18/01/2009, 19:32
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: [WC3] Errores de Validación.

Cita:
Y el 2º :
los <li> deben ir dentro de una lista desordenada (<ul>)
<ul>
<li> .... </li>
<li> .... </li>
</ul>
En tu código:

Cita:
<div id="mc" align="center"><br />
<ul>
<li><a href="http://www.ejemplo1.com" title="Ir a ejemplo!">ejemplo1</a></li>
<li><a href="http://www.ejemplo2.com" title="Ir a ejemplo!">ejemplo2</a></li>
<li><a href="http://www.ejemplo3.com/" title="Ir a ejemplo!">ejemplo3</a></li>
<li><a href="http://www.ejemplo4.com" title="Ir a ejemplo!">ejemplo4</a></li>
</ul>
</div>
lo que está así te sobraría (usa css)
añade lo que está en negrita.
Quizás necesites definir en el css las propiedades de
Cita:
#mc ul { /* las propiedades*/}
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++
  #18 (permalink)  
Antiguo 18/01/2009, 19:57
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Listo, eso lo arreglé...

Pero quedó solo éste que te puse mientras creabas tu respuesta..

Cita:
Validation Output: 1 Error

1. Error Line 22, Column 337: character data is not allowed here.

…" title="Ir a Ejemplo!">ejemplo!</a></li> <li><a href="http://www.ejemplo2.com

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
* putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
* forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
* using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
Jejejeje te desconectaste Kseso :-p!

Jejejej alguien me puede ayudar a solucionar éste error??
__________________
Adivino del Foro y Admirador de Sabios
  #19 (permalink)  
Antiguo 18/01/2009, 20:14
Avatar de webosiris
Moderador egiptólogo
 
Fecha de Ingreso: febrero-2002
Ubicación: Luxor, Egipto
Mensajes: 10.725
Antigüedad: 22 años, 2 meses
Puntos: 998
Respuesta: [WC3] Errores de Validación.

mostrá el contexto por favor (desde el primer mensaje de Mik te estamos pidiendo ver el archivo completo online.....)
__________________
Pasamos tus PSD a HTML

Pobre del que lo sabe todo, porque no tiene nada más que aprender ni razón para vivir. -
  #20 (permalink)  
Antiguo 18/01/2009, 21:00
Avatar de MasterXNicoX  
Fecha de Ingreso: junio-2008
Ubicación: ../Arg/SanLuis.city
Mensajes: 943
Antigüedad: 15 años, 10 meses
Puntos: 28
Respuesta: [WC3] Errores de Validación.

Uh disculpa, no lo habia leído, jejeje.

Igualmente ya está, jejeje alfin está validado.

Muchas gracias a los 3 por haberme ayudado ^^

Aprendí bastantes cosas en éste tema

Un abrazo y que tengan un buen día.
__________________
Adivino del Foro y Admirador de Sabios
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 17:11.