Re: XHTML preparation with li, b, i

*Bertha Bartholomew* <berthabart@hotmail.com>:
>
> Why does HTML 4.01 not require a closing </li> for the <li> tag?

That's a SGML feature (OMITTAG). It's main use is to keep the code smaller.
XML requires well-formedness, thus every start tag needs a corresponding end
tag or be an empty element.

> (e.g., <p> requires a </p>).

No, in HTML it doesn't. As many others it's closed implicitely.

> If HTML 4.01 is to help us get ready for XHTML and XHTML 2

That's not the purpose of HTML4.

Christoph

Received on Thursday, 26 September 2002 10:32:39 UTC