Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/07/2010, 20:15
potoka
 
Fecha de Ingreso: octubre-2009
Mensajes: 107
Antigüedad: 14 años, 5 meses
Puntos: 2
Respuesta: Problema con validación W3C de mi web

Nuevamente yo, tengo una consulta del estilo.
Estoy queriendo validar un archivo .php (con html dentro) y no me tira lo siguiente:


1. Error Line 185, Column 19: "DOCTYPE" declaration not allowed in instance

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" …


2. Error Line 186, Column 16: document type does not allow element "HTML" here

<html lang="es">



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

Lo raro es que tengo exactamente lo mismo en los otros archivos ya validados correctamente y en este no me lo aprueban. La única diferencia que encuentro es que este archivo es php y los demás habían sido html. Saben qué es lo que ocurre?

Saludos!