Re: HTML 3.0 suggestion

benker@ceco.ceco.com (Carl Benker) wrote:

> How about making list items "containerized"?
> 
> <LI></LI>
> 
> The addition of the </LI> tag will give a definite end to list items.

The LI element already is a container, and you can 
include the </LI> end-tag if you like; it's just
optional, since the parser can always tell where an
LI element ends.

The DTD has:

    <!ELEMENT LI    - O %flow>
		    1 2   3

This means that the start-tag is required (1),
the end-tag is optional (2), and the element
can contain text and block-level elements (3);
(The %flow; parameter entity expands into
"(#PCDATA | A | IMG | BR | ... | P | UL | OL | DL | ...)*")

Compare this with the declaration for IMG,
which is not a container:

    <!ELEMENT IMG - O	EMPTY>
		  1 2     3

The "EMPTY" keyword means that IMG has no content.


--Joe English

  jenglish@crl.com

Received on Wednesday, 27 September 1995 11:54:10 UTC