BillyRayPreachersSon
Programmer
Just a quick tip when validating your HTML source that I came across a few days ago.
If you use the W3C validator ( to validate your source, there could be potential errors that go unreported that other validators may pick up on. This could mean that pages you believe to be valid may not show up as being so in other validators (which could be embarrasing if clients check your work using stricter validators).
One example is if you use the HTML 4.01 Strict DOCTYPE, and have HR or BR elements with XHTML-style closing slashes. Take the following code:
The W3C validator reports this as being perfectly valid against the HTML 4.01 Strict DOCTYPE.
Using the validator at htmlhelp.com, however, shows these as problems:
Another nice feature of the htmlhelp validator is that it can validate entire sites in one go.
I'll be checking all of my work in both from now on.
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
If you use the W3C validator ( to validate your source, there could be potential errors that go unreported that other validators may pick up on. This could mean that pages you believe to be valid may not show up as being so in other validators (which could be embarrasing if clients check your work using stricter validators).
One example is if you use the HTML 4.01 Strict DOCTYPE, and have HR or BR elements with XHTML-style closing slashes. Take the following code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en">
<title>Validation test</title>
</head>
<body>
<div>
<p>Some text</p>
<hr />
<p>Some more<br />text</p>
</div>
</body>
</html>
The W3C validator reports this as being perfectly valid against the HTML 4.01 Strict DOCTYPE.
Using the validator at htmlhelp.com, however, shows these as problems:
Another nice feature of the htmlhelp validator is that it can validate entire sites in one go.
I'll be checking all of my work in both from now on.
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]