W3C home > Mailing lists > Public > www-validator@w3.org > April 2006

img allowable parent elements

From: David Pratten <david@kazserve.org>
Date: Tue, 11 Apr 2006 13:40:23 +0600
To: <www-validator@w3.org>
Message-ID: <00f301c65d3b$35f12e90$0e00000a@parasat>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:21 GMT