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

MegaZone (
Mon, 19 Aug 1996 14:49:51 -0700 (PDT)

Message-Id: <>
Subject: Re: To <P> or not to <P> (fwd)
Date: Mon, 19 Aug 1996 14:49:51 -0700 (PDT)
From: MegaZone <>

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>

<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>


<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.

Livingston Enterprises - Chair, Department of Interstitial Affairs
Phone: 800-458-9966 510-426-0770 FAX: 510-426-8951
For support requests:  <> 
Snail mail: 6920 Koll Center Parkway  #220, Pleasanton, CA 94566