[work] Re: [thelist] Validation question

pandy pandion at gmx.net
Sun Sep 4 18:39:25 CDT 2005


At 20:07 2005-09-04, Hershel Robinson wrote:
>>I believe you're not allowed images as children of the body tag -  they 
>>have to be wrapped in something.  Although that's not what the
>>validator picked up, it might be the cause of the error.
>
>WHAT?
>
>I have never seen such a thing in any documentation, nor does that make 
>sense to me AT ALL. The following HTML validates with any (AFAIK) doctype:
>
><html>
><head>
><title></title>
></head>
><body>
><img src="x" alt="" />
></body>
></html>

Not with a (X)HTML Strict doctype.

>AFAIK, the only tags NOT allowed in the <body> tag are those which require 
>a 'special' parent tag, like <td> requires <tr> which in turn requires 
><tbody> or <table>.
>
><img> requires no parent and <body> is a perfectly acceptable container.

In Strict no inline elements are allowed on the loose in body. Neither is 
"naked" text. Same goes for blockquote and form. They can only directly 
contain other block level elements.

But ppk's document is Transitional so this can't be the reason.

pandy




More information about the thelist mailing list