- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Thu, 2 Sep 2004 09:23:40 +0300 (EEST)
- To: William Pracht <tgrk35@gmail.com>
- Cc: www-validator@w3.org
On Thu, 2 Sep 2004, William Pracht wrote: > My code is actually this: > > <td width="25%" id="sides"><?php include("leftbar.php"); ?></td> In terms of (X)HTML, it isn't. The (X)HTML document that a validator, a browser, or other user agent gets is the data that results from the PHP processing of the above. That is, it has no <?php ...?> stuff but the data that PHP substitutes for it. Thus, if you include something with PHP, the included file need not and must not contain a DOCTYPE declaration, unless the include directive appears at the start of a document where such a declaration is allowed. -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 2 September 2004 07:46:19 UTC