![]() |
Tougher validation |
|
Once the site at the new server is ready, this message will automatically disappear!
Meanwhile, you can see how the move is progressing at the status page.
Home | HTML section | VTML section
|
||
What happened? |
Suppose you write a set of pages with HomeSite 3.0. You've started to use some of the features of HTML 4.0 so you regularly check your code with CSE HTML validator which has support for HTML 4.0 built in. When you're satisfied with your results, and everything checks out, you upload your pages, and run them through an on-line validation service like the W3C HTML Validation Service. To your horror, it reports numerous errors. What happened? CSE checks against HTML 4.0 doesn't it? Well, no, not exactly. There are two possible reasons why a page that checks out perfectly with the CSE HTML Validator is not really correct HTML 4.0 (or HTML 3.2, if that's what you were trying to use). The first reason is that CSE does not really parse your page based on a specific DTD like the on-line validation services do. It works instead with a configuration file that defines the rules it checks against. Because of the way this works, it means there are certain types of HTML errors that CSE simply cannot see. I'll write a page explaining this later. But there's nothing you can do to change this. The second reason is that as it comes out of the electronic box, CSE allows (and checks) all HTML constructs it knows about. That includes various extensions dreamed up by Netscape and Microsoft that are not part of any standard. This page will teach you how to set up CSE so that it will conform much better to a standard and not allow any browser-specific extensions. That will give you a much better chance that your pages can be viewed by your audience as intended.
|
|
No download |
So why don't I simply create a tougher configuration file and allow you to download it? Well, there's a real disadvantage to getting stuck on some else's configuration file. The version of CSE HTML Validator that currently is distributed with HomeSite 3.0 is version 2.50.
The maintenance release of HomeSite that's due sometime this month (more likely the end of the month than the originally planned middle of the month) will at least have version 2.51 with it but more likely version 2.52 (already out) or 2.53 (very nearly ready).
When I went to the CSE site So... I'll outline some basic steps you can take with any version of the configuration file to make it tougher. Don't worry, it's really simple to do. |
|
Notes |
A few notes: As stated before, CSE does not validate against a DTD. It checks the syntax of all the tags and allowed attributes and their values for those categories that are active. You will still have to use your common sense interpreting its reports. And if you really want to be sure, even when your page checks out fine with this tougher validation, use one of the on-line validation services outlined on the Validation & Validation page. Final note: some of you may worry about those tags that were at one time Microsoft or Netscape extensions but are now part of HTML 4.0.
You won't be disallowing those by removing the extensions categories: those things are simply defined twice, once as extension, and once as HTML 4.0.
|
|
Mailing lists |
This page is based on one of my posts to the new HWG Techniques mailing list. The HTML Writers Guild has a number of interesting mailing lists as well as nice collection of resources on-line.
All mailing lists are archived and searchable as well. Basic membership of the HWG is free.
More information about the HWG and the mailing lists can be found on the HWG web site |