[work] Re: [thelist] Validation question

Hershel Robinson hershelr at netvision.net.il
Sun Sep 4 13:07:11 CDT 2005

> 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.


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:

<img src="x" alt="" />

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.


More information about the thelist mailing list