538Re: [NH] Warning: expected "html PUBLIC"
- Jun 1, 2000
> I took off the last half of the following, because I thought<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> it was a like to www.w3.org and those are the guys causing me
> all these headaches. ;)
DOCTYPE the type of document in your case is a PUBLIC document based on the
HTML 4.01 Transitional DTD.
first quote is the name of the DTD
"-//W3C//DTD HTML 4.01 Transitional//EN"
the 2nd quote is the url where the DTD can be found.
.The DTD (document type definition) defines exactly what elements and
attributes can be contained in your document.
When you validate a document you validate it against the DTD that the
document is linked to.
If you set the doctype to system then you can locate the DTD on your
<!DOCTYPE HTML system "-//W3C//DTD HTML 4.01 Transitional//EN"
There is nothing stopping you altering this local DTD and give certain
elements attributes like TOPMARGIN, BORDERCOLOR or any other attributes you
like so it will comply to a certain propriety browser. If you use these
attrributes in your document and defined these attributes in the DTD then
your document would VALIDATE. In short validation has got nothing to do with
how a browser displays your documents but whether or not it complies to a
IMHO every HTML clipbook library should be based on a DTD.The xhtml library
being based on the xhtml strict DTD is an example how this can be done. In
fact the library is an attempt to translate a DTD into a clip library.
If you want to check it out the xhtml library is available at.
- << Previous post in topic Next post in topic >>