Re: To <P> or not to <P> (fwd)

MegaZone (megazone@livingston.com)
Mon, 19 Aug 1996 14:49:51 -0700 (PDT)


Message-Id: <199608192149.OAA00358@server.livingston.com>
Subject: Re: To <P> or not to <P> (fwd)
To: www-html@w3.org
Date: Mon, 19 Aug 1996 14:49:51 -0700 (PDT)
From: MegaZone <megazone@livingston.com>

Once upon a time Brent Eades shaped the electrons to say...
>Using <p> as an example, why do the specs simply not state that
><p>foo</p> is the *only* correct way to contain text not otherwise
>marked up... or <p>alone  between blocks of text is the only way...
>but not both?

Because they are both legal.

<P>some text</P>

and 
<P>some text

Are functionally equivalent under the HTML DTD.  Browsers are *supposed*
to implicitly act as if the latter has a closing tag.

Unfortunately some do not, so:

<P align=center>some text</P>
<P>more text</P>

and

<P align=center>some text
<P>more text

Do not act the same.  In the first example only the first paragraph
is centered, in the second *both* are centered - incorrectly.  Because
the browser does not terminate the align without seeing </P>

So it is recommended, but technically not required.

-MZ
--
Livingston Enterprises - Chair, Department of Interstitial Affairs
Phone: 800-458-9966 510-426-0770 FAX: 510-426-8951 megazone@livingston.com
For support requests: support@livingston.com  <http://www.livingston.com/> 
Snail mail: 6920 Koll Center Parkway  #220, Pleasanton, CA 94566