Re: end tags...

Murray Altheim (
Sun, 22 Sep 1996 16:20:18 -0500

Message-Id: <v02110101ae6b57dc9dd6@[]>
Date: Sun, 22 Sep 1996 16:20:18 -0500
To: "Carl Morris" <>
From: (Murray Altheim)
Subject: Re: end tags...
Cc: (Arnoud "Galactus" Engelfriet),

>|Arnoud "Galactus" Engelfriet <> writes:
>| > As such, is it incorrect that MSIE fails on the following?
>| >
>| > <HEAD>
>| >     <STYLE> blah blah style here
>| > </HEAD>
>| STYLE has a required closing tag, and it's not unreasonable that
>| MS IE is just skipping the rest of the document as being invalid
>| CSS1 instead of HTML markup.

Carl Morris <> writes:
>I notice nothing different between the DTD definitions of <P> and <H1>
>to warrant the difference in handling their end tags...

from the HTML 2.0 DTD:

    <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
    <!ELEMENT ( %heading )  - -  (%text;)*>

Big difference. The "- -" in H1-H6 means both start and end tags are required.

    <!ELEMENT P     - O (%text)*>

The "- O" in P means the end tag is optional. Arnoud is corrent: the STYLE
element requires an end tag, so the given example is invalid.


     Murray Altheim, Program Manager
     Spyglass, Inc., Cambridge, Massachusetts
     email: <>
     http:  <>
            "Give a monkey the tools and he'll eventually build a typewriter."