In XHTML (and HTML) there are two kinds of tags - empty, and... non-empty. A tag such as <br> is empty - you can't put anything in it. In XHTML (where all tags must be "closed"), <br> is written as <br />; the slash closes the tag.
<p> is a non-empty tag. The contents of <p>...</p> constitute a paragraph. <p> is *not* a paragraph break - <p> is the start of a paragraph; </p> is the end of a paragraph. So, in XHTML, you mustn't omit the </p> tag, else your document won't be well-formed (i.e. all tags are closed); and in HTML it's recommended that you close paragraphs - it's good practice anyway.
The omitted closing </p> is "added automatically" in SGML, if the parser looks into the DTD to see that i.e. <h1> can not be nested inside <p> but may reside beside <p> which results in automatically closing the paragraph as if explicitely closed by a </p>.
-- Georg Maa� - bioshop.de D-76227 Karlsruhe, Westmarkstra�e 82 HTML, XML / JavaScript, C++, Java, PHP, VB / CGI, JSP, ASP, ASP.net - The ultimate DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul
_______________________________________________ mozilla-editor mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-editor
