Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2011, 12:20
Audiovisuales
 
Fecha de Ingreso: febrero-2011
Mensajes: 6
Antigüedad: 13 años, 1 mes
Puntos: 0
Problemas w3c

Hola, Primero deciros que soy novato y pediros ayuda.

Después de solucionar 55 problemas ya solo me quedan 5 y con estos no puedo debido a mi falta de formación.

Os paso el primero que después de hacer muchas pruebas no consigo solucionar.

validation Output: 5 Errors

Line 2, Column 121: DTD did not contain element declaration for document type name
….0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

A DOCTYPE declares the version of the language used, as well as what the root (top) element of your document will be. For example, if the top element of your document is <html>, the DOCTYPE declaration will look like: "<!DOCTYPE html".

In most cases, it is safer not to type or edit the DOCTYPE declaration at all, and preferable to let a tool include it, or copy and paste it from a trusted list of DTDs.

Line 3, Column 43: document type does not allow element "html" here
<html xmlns="http://www.w3.org/1999/xhtml">

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



Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20200802-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
</script>
<title>Presentación | Alquiler Audiovisuales | Eventos | </title>
<meta name="Language" content="es" /> 

Última edición por Audiovisuales; 06/03/2011 a las 12:23 Razón: olvido cambio