!!!!! Posted December 20, 2006 Share Posted December 20, 2006 What URL do I have to put under [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"[/code]Thanks. Quote Link to comment Share on other sites More sharing options...
stem Posted December 20, 2006 Share Posted December 20, 2006 what do you mean? ???if your looking for a basic page layout in html my dreamweaver puts:[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body></body></html>[/code]if thats any use to you :)you don't really need the top bit thoe Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 20, 2006 Share Posted December 20, 2006 That is a DOCTYPE it has nothing to do with PHP. Bit its to do with HTML.Read up on DOCTYPE over at [url=http://www.w3schools.com/tags/tag_doctype.asp]w3schools.con[/url].I will move this to the HTML forum. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 20, 2006 Share Posted December 20, 2006 The URL you'll use in the DOCTYPE you posted would be [tt][nobbc]http://www.w3.org/TR/html4/loose.dtd[/nobbc][/tt]. That would make it: [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">[/code] Quote Link to comment Share on other sites More sharing options...
448191 Posted December 20, 2006 Share Posted December 20, 2006 [quote author=stem link=topic=119390.msg488915#msg488915 date=1166627674]you don't really need the top bit thoe[/quote]Yes you DO! Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 20, 2006 Share Posted December 20, 2006 To extend what 448191 (get an easier username to remember :P so I don't have to look every time):You need the DOCTYPE so the parser will know how to parse it. Each DOCTYPE describes what the tags are, what attributes they have and so on (I think), just take a look at this one: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (it is the one for XHTML Strict). In fact you can create your own DOCTYPEs as well (see: http://w3schools.com/dtd/default.asp). DOCTYPE means Document Type Declaration and declares what type it is.There are good reasons to use standards and use valid (X)HTML documents (and that includes using the correct DOCTYPE):[o]It makes it easier for the browser developers.[o]It will not cause extra overhead to the browsers as they will not have to figure out themselves what the developer meant because he did not care about standards. I think this is what is called "quirks mode".[o]It makes it easier for web developers. If all follow the same standards it would be much easier.[o]Users with mobile devices such as cell phones have limited processing power and is therefor unable to have things as quirks mode. They rely on valid documents that follow the standards, but if somebody somewhere did not care about it, they cannot read it as it cannot be parsed.Take as an example keyboards: There are certain standards of how the keys are positioned. The keyboard manufacturers don't just put the keys at a random place because there are STANDARDS they follow which will make it easier for the user. How would you ever learn to type fast if you cannot possible learn where the keys are as it is random? Quote Link to comment Share on other sites More sharing options...
fenway Posted December 20, 2006 Share Posted December 20, 2006 Please let's not let this thread become a "champion of standards" thread... you either use a complete DOCTYPE, or none at all. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 20, 2006 Share Posted December 20, 2006 In my opinion you should always use one as it will not be valid without one. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.