|
Posted by Neredbojias on 05/18/06 10:20
To further the education of mankind, "Ian Davies"
<iandan.dav@virgin.net> vouchsafed:
> Thanks for that
> If my page is is a php dynamic page with html script where is the best
> place for the
> document type declaration to be put?
> Presumably if the the php file contains no html then presumably I
> would not need a document type declaration?
If it generates html markup sent to the client as a page, the doctype
should go at the top. Strict is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
And yes, if the script doesn't generate a page, no doctype needed.
--
Neredbojias
Infinity has its limits.
Navigation:
[Reply to this message]
|