Click to See Complete Forum and Search --> : validation site


Jaelan
12-27-2004, 04:14 PM
Hey guys...i'm confused...is something wrong w/ w3's validation site?...

Here's my blank page template w/ doctype etc....


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 STRICT//EN"
"http://www.w3.org/TR/html4/DTD/html4-strict.dtd>
<html lang="en">
<head>
<title> </title>
<link type="text/css" rel="stylesheet" href=""></link>
<script type="text/javascript" src=""></script>
</head>
<body>
</body>
</html>


Now, on Friday, this said it was valid no errors, gave me a nice little icon that, if I chose, could display on the page...

However, today, it says it's not valid...

http://validator.w3.org/check?uri=www.mypmtsite.com%2Fdd%2Ftest.php

:confused:

Any ideas?

Jaelan

MstrBob
12-27-2004, 04:23 PM
Your DTD is not valid. Wrong URL path. Check this out:

http://www.w3.org/QA/2002/04/valid-dtd-list.html

You want to use this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

And you're missing the end quotation mark for the DTD. Also, it's good pratice to include your content-type and characterset in meta tags. So, this would be a good barebones page:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Content-Style-Type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title></title>
</head>
<body>

</body>
</html>

Jaelan
12-27-2004, 04:30 PM
Bleh,
Thanks. I had been using different ones (from the w3 doctype page) but I hadn't noticed the missing "...thanks for your help :)

Jaelan