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

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>

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.

Hershel


More information about the thelist mailing list