Re: HTML question

Arnoud (
Fri, 09 May 1997 12:56:28 +0200

From: (Arnoud "Galactus" Engelfriet)
Subject: Re: HTML question
Date: Fri, 09 May 1997 12:56:28 +0200
Message-ID: <>

In article <9259041608051997/A51001/RIT1/11B544041700*@MHS>,
"SINGH SATWINDER (516) 434-6274" <> wrote:
> <DL>
> This is test1

This is invalid syntax; text is not permitted directly inside <DL>.
The HTML standard does not say anything about how to handle invalid
syntax of this type, there is only a recommendation on how to handle
unknown elements and attributes.

> Well now the question is, Is HTML grammer rigid or all these browsers
> are using the undocummented grammer. 

Browsers (and indeed any parsers) are free to handle invalid syntax
as they see fit. The most conservative approach is probably to
assume that the "expected" element was forgotten, so your example would
<DT>This is test 1
although this does not work in all cases (eg, with the nested <DL>,
which may not occur in <DT>, so you would also have to assume a <DD>).
An alternative would be to assume that <P> was meant, or to ignore
the <DL> altogether.

E-mail: .................... PGP Key: 512/63B0E665
Maintainer of WDG's HTML reference: <>