Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2009, 01:06
Avatar de juanolo
juanolo
 
Fecha de Ingreso: abril-2008
Mensajes: 251
Antigüedad: 16 años
Puntos: 5
Pregunta ¿Porque W3C no me valida este codigo?

Es simplemente una lista ordenada combinada con lista numerada

<ul>
<li>Hardware</li>
<ol>
<li>Procesador</li>
<li>Placa Base</li>
<li>RAM</li>
</ol>
<li>Software</li>
<li>Programacion</li>
</ul>


Los errores que me dice son 4...
- Line 12, Column 5: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>


- Line 17, Column 4: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li>Software</li>


- Error Line 18, Column 4: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li>Programacion</li>


- Error Line 19, Column 5: end tag for "li" omitted, but OMITTAG NO was specified
</ul>


y una especie de advertencia...
- Line 12, Column 1: start tag was here
______<ol>



El codigo completo es esto...
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "no_me_deja_poner_enlaces.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="no_me_deja_poner_enlaces.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin título</title>
  5. </head>
  6.  
  7. Lista ordenada combinada con lista numerada
  8. <ul>
  9. <li>Hardware</li>
  10.     <ol>
  11.     <li>Procesador</li>
  12.     <li>Placa Base</li>
  13.     <li>RAM</li>
  14.     </ol>
  15. <li>Software</li>
  16. <li>Programacion</li>
  17. </ul>
  18. </body>
  19. </html>

Última edición por juanolo; 08/05/2009 a las 01:51