Re: document type does not allow element "div" here?

Hi,
It's not allowed to put a "div" in an "a" due to DTD

You've such a code

<a href="http://www.frauenportal.net">
<div class="logo"></div>
<!--end: logo-->
</a>



2010/10/1 Sandra Reinhart <sandrar82@gmx.de>

> Hello!
>
> I am the webmaster of http://www.frauenportal.net/ - I am trying to
> validate my website. I used http://validator.w3.org/ and am getting some
> errors.
>
> The only error I do not understand, is the following:
>
> Line 70, Column 20: document type does not allow element "div" here;
> missing one of "object", "applet", "map", "iframe", "button", "ins", "del"
> start-tag
>
>  <div class="logo"></div>
>
> Can somebody please explain me this error?
>
> Thank you!
>
> Sandra
> --
> Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
> Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
>
>


-- 
Osman Yüksel
http://www.yuxel.net
http://www.opera-tr.com

Received on Saturday, 2 October 2010 00:33:48 UTC