HTML Doctype Declaration

Dale Dougherty (dale@ora.com)
Fri, 4 Jun 1993 12:00:35 -0700


In order to validate a SGML file, it must have
a DOCTYPE declaration, pointing to the SGML DTD.
Here's an example:

<!DOCTYPE HTML SYSTEM "/work/dmg/dtds/html/orahtml.dtd" >

Now, I know that the WWW parser does not need this
information because it does not actually read
a DTD. However, if one is validating HTML files with an SGML parser,
which is the right thing to do at some point, the SGML parser needs
this line. It would be nice to depend upon the HTML parser
to at least know to ignore it.

In Xmosaic, for instance, this line is displayed on the screen.
I'm not sure how the other browsers handle it.

Dale

-- 

Dale Dougherty Digital Media Group, O'Reilly & Associates, Inc. 103A Morris Street, Sebastopol, California 95472 (707) 829-3762 (home office); 1-800-998-9938

UUCP: uunet!ora!dale Internet : dale@ora.com