Re: DTD problem, or validator problem?

From: Tim Bagot (
Date: Wed, Aug 15 2001

  • Next message: Matthew Wickline: "Re: DTD problem, or validator problem?"

    Date: Wed, 15 Aug 2001 20:12:25 +0000 (UTC)
    From: Tim Bagot <>
    To: <>
    Message-ID: <Pine.LNX.4.33.0108152002310.1356-100000@windle.cipe>
    Subject: Re: DTD problem, or validator problem?
    At 2001-08-15T12:07-0500, Matthew Wickline wrote:-
    > The problem is that meta and link are also empty containers. However,
    > updating those tags results in pages which no longer validate. The
    > following examples show a page with updated br and hr tags. The first
    > one does not have an updated meta tag and validates. The second one has
    > an updated meta tag and no longer validates. (The slash in the meta tag
    > seems to imply that the body element has begun, which makes the closing
    > head tag an error, as well as the starting body tag.)
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    >     "">
    You are telling the validator that the document should be interpreted as
    HTML 4.01 (though not using the usual doctype declaration), so it
    interprets it as such, and not as XHTML. A subtle difference between SGML
    (with HTML's SGML declaration) and XML means that a tag <empty/> is
    terminated in XML by the '>', but in SGML by the '/', so that the '>' is
    interpreted as character data, which is not permitted by the content model
    for the head element.
    Tim Bagot