Foros del Web » Creando para Internet » Diseño web »

Validación W3.org

Estas en el tema de Validación W3.org en el foro de Diseño web en Foros del Web. Wenas como dice el titulo estoy tratando de validar con la w3.org bueno parece estar casi todo bien... Les dejo los errores que me marca ...
  #1 (permalink)  
Antiguo 27/09/2011, 15:57
Avatar de Maganius  
Fecha de Ingreso: septiembre-2010
Mensajes: 310
Antigüedad: 13 años, 7 meses
Puntos: 10
Validación W3.org

Wenas como dice el titulo estoy tratando de validar con la w3.org
bueno parece estar casi todo bien...

Les dejo los errores que me marca pero no los entiendo.

Validation Output: 4 Errors

  1. Line 13, Column 31: document type does not allow element "script" here; assuming missing "body" start-tag <script type="text/javascript">
  2. Line 18, Column 6: document type does not allow element "body" here <body>
    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).
  3. Line 43, Column 50: an attribute value must be a literal unless it contains only name characters … <div class="noticias_cont"><img src=/imagenes/comillas.png alt='imagen' /></…
    You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.
  4. Line 63, Column 7: end tag for "body" omitted, but OMITTAG NO was specified </html>
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
  5. Line 13, Column 1: start tag was here <script type="text/javascript">

Lo que esta pintado en rojo es lo que me marca en la pagina de la w3.org

PD: Es validación XHTML 1.0 Transitional
  #2 (permalink)  
Antiguo 27/09/2011, 18:08
Avatar de zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: Validación W3.org

buenas,
¿no te sirve un traductor? digo, si es cuestión de no entender bien el inglés. el primer y segundo error son del mismo tipo, has ubicado los elementos en sitios incorrectos. especificamente el elemento body y script. el tercero es un poco menos claro, pero se debe a que no has usado correctamente la sintaxis xhtml. los valores de los atributos deben siempre estar entre comillas. fijate el atributo src de img. el cuarto error, aparentemente has omitido cerrar la etiqueta body. en xhtml todos los elementos deben tener un cierre. nota: si arreglas el primero y tercero solucionas todo el problema.

__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.

Última edición por zerokilled; 27/09/2011 a las 23:07 Razón: corregir frase, se entendia otra cosa
  #3 (permalink)  
Antiguo 27/09/2011, 22:03
Avatar de Maganius  
Fecha de Ingreso: septiembre-2010
Mensajes: 310
Antigüedad: 13 años, 7 meses
Puntos: 10
Respuesta: Validación W3.org

Muchas gracias zerokilled, tenias razon lo que me pasaba con las imagenes era que las sacaba dinamicamente mediante un sistema que hice y me faltaron agregar las comillas simples ya que solamente tenia comillas dobles para poder colocar una variable entonces se me pasaron.

Y el problema del script era que yo incluia un archivo .html con script en el medio de head y body y no me daba cuenta que ese archivo tenia scripts y por eso me lo detectaba mal, y en cuanto al traductor si lo traduci, pero debio de ser que estube todo el dia con la pagina y no me daba cuenta que era.

A todos le pasa lo mismo cuando trabajan tanto con una cosa que obvian lo mas facil jeje.

Gracias

Etiquetas: validar
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 14:19.