Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/05/2006, 07:36
Avatar de Artdeco
Artdeco
 
Fecha de Ingreso: abril-2005
Ubicación: Barcelona
Mensajes: 165
Antigüedad: 18 años, 11 meses
Puntos: 1
Cita:
Iniciado por rocita
al validador http://validator.w3.org/ me genera 1 error y quiero que no me genere ninguno.
No da ningún error. Lo que has hecho ha sido copiar este código:

Código HTML:
<object type="application/x-shockwave-flash" data="contenedor.swf?path=flash.swf" width="230" height="100">
	<param name="movie" value="contenedor.swf?path=flash.swf" />
	<param name="quality" value="high" />
	<img src="flash.png" width="230" height="100" alt="Imagen en reemplazo de flash" />
</object> 
y pegarlo en el validador, en el Validate by Direct Input, es decir, validar un trozo de código directamente. Si lees el error que te ha dado, te dice que no has declarado qué tipo de HTML estás usando: No DOCTYPE found! Attempting validation with XHTML 1.0 Transitional. This page is not Valid (no Doctype found)!

Está el XHTML transicional, el de frames, el estricto... Yo siempre uso el estricto, así que si le das esto al validador...

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>T&iacute;tulo de tu p&aacute;gina</title>
<style type="text/css">body{text-align:center;margin:auto;width:auto;border:0;padding:0;}</style>
</head>
<body>
<div style="width:100%;text-align:left;"></div>
</body>
</html>
... te dirá esto: This Page Is Valid XHTML 1.0 Strict!

Más claro no puedo explicarlo xD

¡Saludos!