Page 1 of 1

Does PHP need this HTML header?

Posted: Wed Nov 02, 2005 11:21 am
by hbnmgr
It seems to me that you create HTML pages, name them 'something.php' , with PHP code snippets embedded therein. But what about this Header?

<code>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
</code>

Is there another one to utilize with PHP or will the above suffice?
Sorry to ask such a dumb question, but couldn't find the answer in my manuals! :oops:
Just making final adjustments before posting.

Thanks!
SRR/arr 8)

Posted: Wed Nov 02, 2005 11:22 am
by Luke
I've never seen that....

I'm helpful, aren't I?

Posted: Wed Nov 02, 2005 11:29 am
by feyd
FYI, DOCTYPE (a.k.a. DTD) isn't required unless you want the browser to use standards compliance mode for rendering your page. The w3c has a list of the available doctypes...


http://w3c.org