onemanstarwars Posted September 30, 2005 Share Posted September 30, 2005 I have only recently started working in php. I am planning to change all my web pages to php. I was wondering if or what doctype to use? Link to comment Share on other sites More sharing options...
alzable Posted September 30, 2005 Share Posted September 30, 2005 Use the same one as the html one you want! Simple!alzable :)EDIT:PHP only processes the HTML. Like, its a script that writes the html (sometimes to a curcimstance) for you. The scouce of a php document comes out as pure html when on the web! Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted April 19, 2009 Share Posted April 19, 2009 You need a <!DOCTYPE> if you are outputting HTML code. Otherwise the browser will use quirks mode and will attempt to guess how your page is to be displayed.Depending on the language of your (X)HTML, there are a variety of DTDs to choose from: http://htmlhelp.com/tools/validator/doctype.html Link to comment Share on other sites More sharing options...
Kaboraya Posted April 23, 2009 Share Posted April 23, 2009 The doctype depends on what your html looks like. It doesn't really matter whether the page is being generated with php or not, but just upon what the final code sent to the browser looks like. HTML 4 Transitional is probably a good one to start with. The W3C maintains a list of valid doctypes that you can choose from. Link to comment Share on other sites More sharing options...
Ingolme Posted April 23, 2009 Share Posted April 23, 2009 This topic is four years old. It needs no more replies. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 23, 2009 Share Posted April 23, 2009 Just FYI, but the user you guys are responding to last logged in Oct '05. Link to comment Share on other sites More sharing options...
jlhaslip Posted April 23, 2009 Share Posted April 23, 2009 Firefoxrules has been replying to dead topics for a week or two. I've been ignoring them. Please check the dates on Topics before replying. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now