Re: html4 loose dtd

<x.petard@netcourrier.com> wrote:

> I'm not sure posting in the right list, but I'm wondering why, in the
> html 4 loose dtd (http://www.w3.org/TR/html4/loose.dtd), line 30sq, one
> can read:
>
> <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN"
>   -- Typical usage:
>
> and not something like:
>
> <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN">
> <!-- Typical usage:

This is because comments can appear in markup declarations where parameter  
separators are allowed. When you're using the form <!-- -->, it's just a  
specialized syntax for comments, called a comment declaration.

-- 
David Håsäther

Received on Thursday, 18 October 2007 17:19:36 UTC