W3C home > Mailing lists > Public > www-validator@w3.org > October 2010

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

From: Osman Yüksel <yuxel@sonsuzdongu.com>
Date: Fri, 1 Oct 2010 23:26:54 +0300
Message-ID: <AANLkTikjU9Pz5zOU7S3JyvQhG8B_Se1_7-yh+xxsdLyP@mail.gmail.com>
To: Sandra Reinhart <sandrar82@gmx.de>
Cc: www-validator@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:44 GMT