Foros del Web » Creando para Internet » HTML »

Problema validación de página en validator.w3.org

Estas en el tema de Problema validación de página en validator.w3.org en el foro de HTML en Foros del Web. He puesto para validar una página de mi sitio web en validator.w3.org y sale este mensaje: Código: Line 119, Column 122: document type does not ...
  #1 (permalink)  
Antiguo 23/04/2015, 10:45
 
Fecha de Ingreso: junio-2009
Mensajes: 16
Antigüedad: 14 años, 10 meses
Puntos: 0
Problema validación de página en validator.w3.org

He puesto para validar una página de mi sitio web en validator.w3.org y sale este mensaje:

Código:
Line 119, Column 122: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…le width="100%" border="0" cellpadding="0" cellspacing="0" class="fondotablas">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Espero pueda ayudarme alguien:

Código:
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="fondotablas">
                <tr>
                  <td width="330">
                 <img src="../imagen/play_rojo.jpg" width="20" height="20" border="0" align="bottom" alt="" title=""/>
                   <img src="../imagen/play_azul.jpg" alt="" width="19" height="19" border="0" align="bottom" />&nbsp;<img src="../imagen/cuadrado.png" alt="" width="19" height="19" border="0" align="bottom" /><a rel="external" href="cancion.php?idcancion=525"><br />Esto es un mensaje/a><br />Ejemplo 1<br /><br /></td>
                  <td width="12"></td>
                </tr>
                        </table>
                          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fondotablas">
                <tr>
                  <td width="330">
                 <img src="../imagen/play_rojo.jpg" width="20" height="20" border="0" align="bottom" alt="" title=""/>
                   <img src="../imagen/play_azul.jpg" alt="" width="19" height="19" border="0" align="bottom" />&nbsp;<img src="../imagen/cuadrado.png" alt="" width="19" height="19" border="0" align="bottom" /><a rel="external" href="cancion.php?idcancion=43"><br />Esto es un mensaje</a><br />Ejemplo 2<br /><br /></td>
                  <td width="12"></td>
                </tr>
                        </table>

Gracias.
  #2 (permalink)  
Antiguo 23/04/2015, 11:00
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 8 meses
Puntos: 578
Respuesta: Problema validación de página en validator.w3.org

Tienes varios errores:

1) En HTML a los elementos vacíos no se les añade el autocierre de XHTML (/>), salvo en HTML5 que considera válido de igual forma.

2) Los elementos en bloque tales como divs o párrafos, no se pueden incrustar en elementos en línea (spans, anclas etc.). También válido en HTML5.


Última edición por PHPeros; 23/04/2015 a las 11:08

Etiquetas: iframe, página, php
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 16:40.