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:

[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
Link to comment
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 comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.