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

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

Received on Monday, 19 August 1996 17:50:19 UTC