img allowable parent elements

According to the view of the xhtml 1.0 DTD at
http://linux.duke.edu/~mark/docs/dtds/xhtml/xhtml-basic10/elements/img.html
the img element does not have <body> as an allowable parent. 

However the following validates as XHTML 1.0 Transitional:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<img alt="earache" src="earache_02.JPG" />
</body>
</html>

Is this behaviour by design?

David

Received on Tuesday, 11 April 2006 12:39:55 UTC