Does PHP need this HTML header?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hbnmgr
Forum Newbie
Posts: 13
Joined: Mon Mar 07, 2005 8:22 pm

Does PHP need this HTML header?

Post 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)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I've never seen that....

I'm helpful, aren't I?
Last edited by Luke on Wed Nov 02, 2005 11:31 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Post Reply