W3C home > Mailing lists > Public > www-validator@w3.org > January 2006

Re: [VE][64] IMG element

From: David Dorward <david@dorward.me.uk>
Date: Fri, 20 Jan 2006 09:42:49 +0000
To: Ryan McCue <ryanmccue10@hotmail.com>
Cc: www-validator@w3.org
Message-ID: <20060120094249.GA435@us-lot.org>

On Fri, Jan 20, 2006 at 04:30:40PM +1000, Ryan McCue wrote:
> When I validate several of my pages I receive the following:
> Error /Line 49 column 40/: document type does not allow element "img"
> here

> How is it possible to amend this.

Find out where an image /is/ allowed and put it there instead. (I'm
guessing that you have made the <img> element a child of the <body>
element. The body element can only have children in the group %block,
but many elements in that group have have img elements as children (so
you probably just need to wrap the image in something suitable, like a

(I read the mailing list. Please send responses there and do not CC
me. Thanks).

David Dorward                                      http://dorward.me.uk
Received on Friday, 20 January 2006 09:42:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:54 UTC