Foros del Web » Creando para Internet » HTML »

Por que falla el validador???

Estas en el tema de Por que falla el validador??? en el foro de HTML en Foros del Web. Buenos dias, soy nuevo en esto del diseño de paginas web. En mi primer intento ya tengo problemas . En fin vamos al grano mi ...
  #1 (permalink)  
Antiguo 03/01/2005, 04:56
 
Fecha de Ingreso: enero-2005
Mensajes: 2
Antigüedad: 19 años, 3 meses
Puntos: 0
Pregunta Por que falla el validador???

Buenos dias, soy nuevo en esto del diseño de paginas web. En mi primer intento ya tengo problemas . En fin vamos al grano mi codigo fuente es:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>GRUPO DE VIBROACÚSTICA DE LA UNIVERSIDAD DE ZARAGOZA</TITLE>
<META name="author" content="Sergio Carnicero Pérez">
<META name="keywords" content="Sergio">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META http-equiv=Content-Script-Type content=text/javascript>
<META http-equiv=Content-Style-Type content=text/css>
<LINK href="css/estilo.css" type=text/css rel=stylesheet>
<SCRIPT src="js/java.js" type=text/javascript></SCRIPT>
</HEAD>


Y cuando lo intento validar me da estos fallos:

Line 10, column 50: document type does not allow element "META" here

<META http-equiv=Content-Style-Type content=text/css>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).



Line 11, column 39: document type does not allow element "LINK" here

<LINK href="css/estilo.css" type=text/css rel=stylesheet>



Line 13, column 7: end tag for element "HEAD" which is not open

</HEAD>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.



Line 15, column 5: document type does not allow element "BODY" here

<BODY>



En fin que ya no se que cambiar, si alguien me puede ayudar estaria muy agradecido

GRACIAS POR ANTICIPADO
  #2 (permalink)  
Antiguo 03/01/2005, 05:54
Avatar de PatomaS
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.656
Antigüedad: 20 años, 1 mes
Puntos: 63
Hola y bienvenido por estos lares...

;)

Bueno, veamoas ese código.

1. Primero veo un error, pero puede haber sido el en copiar y pegar:

A esta línea le falta la apertura de etiqueta, es decir "<"
Código:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
2. Esta línea:
<META http-equiv=Content-Script-Type content=text/javascript>
debería estar así:
<meta http-equiv="Content-Script-Type" content="text/javascript">

3. Lo mismo con esta línea,
<META http-equiv=Content-Style-Type content=text/css>
la forma de escribirla sería:
<meta http-equiv="Content-Style-Type" content="text/css">

4. Esta líne atambién debería corregirse
<LINK href="css/estilo.css" type=text/css rel=stylesheet>
así
<link rel="stylesheet" href="css/estilo.css" type="text/css">

5. esta
<SCRIPT src="js/java.js" type=text/javascript></SCRIPT>
así
<script src="js/java.js" type="text/javascript"></script>


Yo te diría que elimines los meta que llamana a las css y al js, dejand osolo la etiqueta script y link.


Trata con esos cambios y si te da algún otro problema, puedes pegar aquí nuevamente elos mensajes.

Suerte

Felicidad
__________________
¡ hey, hou, hou, hey !
  #3 (permalink)  
Antiguo 03/01/2005, 07:00
 
Fecha de Ingreso: enero-2005
Mensajes: 2
Antigüedad: 19 años, 3 meses
Puntos: 0
Muchas gracias, asunto solucionado.

Por cierto como puedo hacer para que al pinchar en una imagen se me abra una ventana nueva con las dimensiones de la imagen originales?

Pongo este codigo pero creo k le falta algo no? (blank o algo asi)

<a href="plano1.html" > <IMG id=plano width=700 title="Ampliar" src="imagenes/pln01.jpg"> </a>
  #4 (permalink)  
Antiguo 03/01/2005, 07:07
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 disclo

Echa un vistazo a las FAQs-55 de JavaScript:

http://www.forosdelweb.com/showthrea...896#post266896

y la siguiente.

Saludos,

P.D. Es preferible que abras un nuevo mensaje para nuevas preguntas, así nos liamos menos al buscar.
  #5 (permalink)  
Antiguo 08/01/2008, 09:19
 
Fecha de Ingreso: enero-2008
Mensajes: 1
Antigüedad: 16 años, 3 meses
Puntos: 0
Re: Por que falla el validador???

hola me llamo sandra G, saben como puedo corregir alguno de estos errores, esto me salio validando con Markup Validation Services


Line 29, column 14: document type does not allow element "HTML" here
<td>

<HTML>Line 35, column 73: document type does not allow element "LINK" here
…/es/estilos/headerStyle.css" type="text/css"/>

Line 289, column 121: end tag for "SPAN" omitted, but its declaration does not permit this
…ont face="Verdana"></font></span></td>Line 544, column 15: end tag for "TABLE" omitted, but its declaration does not permit this
</td>
Line 155, column 153: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
…"170" cellspacing="0" cellpadding="0"><TR><TD colSpan="2" class="bordeLateralLine 304, column 85: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
…FEXML2"><table border="0" width="170"><TR><TD colSpan="2"></TD></TR><TR><TD>

<Line 452, column 137: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
…n id="HtmlPlaceholderControl4"><TABLE>

Line 505, column 169: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
…llPadding="0" align="left" border="0">
L
ine 15, column 2269: NET-enabling start-tag requires SHORTTAG YES
…j47Pj47PgCXw6Vo9bmRmqkwFuZC9ItRyjR5" />

Line 35, column 73: NET-enabling start-tag requires SHORTTAG YES
…/es/estilos/headerStyle.css" type="text/css"/>

Line 85, column 244: NET-enabling start-tag requires SHORTTAG YES
… border="0" id="Image17" alt="inicio"/></a> <a href="/en/" onmouseout="MM_Line 85, column 502: NET-enabling start-tag requires SHORTTAG YES
…border="0" id="Image18" alt="english"/></a><a href="/es/mapasitioes.htm" onmoLine 85, column 771: NET-enabling start-tag requires SHORTTAG YES
…="0" id="Image19" alt="mapa de sitio"/></a><A href="/es/"></A>

Line 105, column 125: NET-enabling start-tag requires SHORTTAG YES
… height="12" alt="buscar en el sitio"/></td>

Line 564, column 51: NET-enabling start-tag requires SHORTTAG YES
<input type="hidden" name="__EVENTTARGET" value="" />

Line 565, column 53: NET-enabling start-tag requires SHORTTAG YES
<input type="hidden" name="__EVENTARGUMENT" value="" />
  #6 (permalink)  
Antiguo 08/01/2008, 10:49
Avatar de K-Yezaad  
Fecha de Ingreso: octubre-2005
Mensajes: 140
Antigüedad: 18 años, 6 meses
Puntos: 3
Re: Por que falla el validador???

Saludos. Echando un ojo a los mensajes de error, parece ser que estas usando XHTML estricto. Esta especificacion de HTML requiere seguir un orden poner los tags, verifica dentro que etiquetas pusiste los tags <table> y <html>

Sobre lo de shorttag Yes, verifica que esos tags tengan su atributos declarados como atributo = "valor"
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 11:20.