If browsers didn't use dtds, there would be absolutely no point in
putting one in an html page and that isn't the case. Browsers may not
use dtds as intended or to the fullest extent, but they do use them. I
hope you and Jukka do not propagate yet another html myth.
I will try to express this so that even you parse it correctly. I will
try not to use big words, or concepts so as to not confuse, and so that
your somewhat limited parser will be able to validate.
A DTD (document type definition) describes the precise structure a
conforming document must follow. Think of it as the rules. In theory
every document could have a unique set of rules (DTD), but so long as
they are publicly available a parser (for this discussion we are talking
about a browser) could obtain the rules and parse each document
dynamically. Coding such a parser would be a monumental task. In
reality a limited number of DTDs have been agreed to as "standard." So
when a programmer writes the code to parse documents, he has copies of
all the appropriate rules handy, and codes (in most cases) accordingly.
It is not necessary for the browser to read the rules for each
document as it is parsed, since it is assumed that neither the rules nor
the browser's own code have changed. In a sense the browser doesn't
"use" the DTD, it has it incorporated into its own code. However, since
there are several "standards" in use, the browser must decide which
branch of its own code to follow. I haven't coded any browsers, but
they appear to use the DOCTYPE declaration for this, and though it
could, it doesn't retrieve the DTD with each request, because the DTD is
of no use to the browser anymore since it cannot rewrite its own code to
accommodate the DTD if it had changed.
So when you parse the term "use" in this context, is anything Yucca, or
I have said invalid?
Try it for yourself. Start with a simple valid HTML document and view
it w/Firefox web developer toolbar. Does it indicate standards compliant
mode? Now start editing the DOCTYPE declaration to see how you can get
it to switch to quirks mode.