<P> This is a normal paragraph which will be rendered according to default alignments, which usually means left alignment. </P> <CENTER> <P> This is text which will be centered. </P> <P> This is a longer text paragraph which will be centered. It is so long that line breaks will most probably occur. Notice that the division into lines is usually not the same as in the HTML file. </P> </CENTER>
Using ALIGN attribute in P and heading elements is preferable to using DIV.
CENTER is defined as equivalent to DIV with ALIGN=CENTER. CENTER was introduced by Netscape before they added support for the DIV element. It is retained in HTML 3.2 on account of its widespread deployment.
Since CENTER is a block element, it terminates an open P element ( i.e. causes the browser to assume an implied </P> tag when necessary). Other than this, browsers are not expected to render paragraph breaks before and after CENTER elements. If paragraph breaks are desired, you can use the P element with an ALIGN attribute instead.