W3C home > Mailing lists > Public > www-html@w3.org > June 2001

Re: [OT] ok what goes on ear?

From: Clover Andrew <aclover@1value.com>
Date: Fri, 22 Jun 2001 15:49:41 +0200
Message-ID: <D58B0195B58937489E89124469E57CA20D5027@EX1.1value.com>
To: <www-html@w3.org>
Eric <e.richards@clear.net.nz> wrote:

> Error: element "IMG" not allowed here; check which elements this
> element may be contained within (explanation...)

Without a full example/URL it's difficult to say, but it's possible
you're using an <img> directly inside <body>. <img> and other
inline content (like text) should instead go inside a block
container such as <p>; with text you get the slightly more helpful
error message "text is not allowed here; try wrapping the text in a
more descriptive container".

You can get away with it in 'Transitional' HTML (and pre-HTML4
versions) but not in Strict. Fix the problem or go to Transitional.
It's not an issue with the HTML spec itself so is somewhat off-
topic here; if this isn't the right solution and you think there's
a bug in the validator, the best place to discuss it is probably
www-validator@w3.org.

> were does "FOO" come into it? 
> more important TABLES the  wrong code is not used in tables.

Both were just examples in the error message, not related to
anything in your page. 'foo' is a very common placeholder for
giving examples.

(BTW, please post plain-text rather than than HTML!)

ObValidator: As an aside, that explanation page is rather
disappointingly formatted, with its abuse of grave accents for
open-single-quotation-mark and it's mi'suse of apo'strophe's.
And it still uses capital letters for element and attribute
names. Tsk, eh?

-- 
Andrew Clover
Technical Consultant
1VALUE.com AG
Received on Friday, 22 June 2001 09:51:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT