Jump to content

[SOLVED] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "(what url?


Recommended Posts

what do you mean?


if your looking for a basic page layout in html my dreamweaver puts:


<!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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>



if thats any use to you :)
you don't really need the top bit thoe
Link to post
Share on other sites
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]
Link to post
Share on other sites
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?
Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.