¡Ayuda!
Me consta que entre los que visitan esta humilde página hay gente que sabe un montón de XHTML, CSS y esas cosas, así que voy a aprovecharme de su generosidad y voy a pedir ayuda para un pequeño problemilla que tengo.
No consigo validar el XHTML. Tengo las siguientes etiquetas, que son las que forman la cabecera.
<div id=”rap”><a href=”http://putatriat.net”><div id=”header”><img src=”http://putatriat.net/n.png” width=”0″ height=”0″ alt=”putatriat.net” /></div></a>
En la hoja de estilo, el atributo rap da el ancho de la columna, y header pone como fondo del recuadro un script en php que hace que la imagen varíe cada vez que se recarga la página. La colocación de a href es la única que hace que al pulsar sobre el recuadro, se cargue la página principal.
Pero eso me da el siguiente error al validar:
1. Error Line 39 column 61: document type does not allow element “div” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag.
…ttp://putatriat.net”><div id=”header”><img src=”http://putatriat.net/n.png” w
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>”).
Una solución sería utilizar el atributo background en el XHTML, pero está desaconsejado por la W3C y además quiero hacerlo desde el CSS.
Quiero conseguir que pulsando en el recuadro se vaya a la página principal y que, por supuesto, valide. ¿Alguna sugerencia? Graciaaaas

