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

Hola a todos, estoy intentando validar mi página web y me tira este error:

# Error Line 102, Column 91: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

…"lista"><a href="#" class="link"><p style="margin-top: 8px">El lugar</p></a>


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

Estuve buscando y parece que no se puede usar el tag <p> dentro de <a>; mi problema es que necesito que ese texto esté 8px más abajo y no logro hacerlo de otro modo (es decir, en este modo sí se ve como yo quiero, pero no me lo validan ), pasa lo mismo poniendo un div, un label, y no se cómo solucionarlo.
Alguna sugerencia?

Saludos!