Center

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE1 | M2FB | N1 | O2.1
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
Center is an element that centers the text it contains in the browser window. The element was created to fill the need for authors to have some text alignment controls, but most of the effects this element produces have been absorbed by other block formatting elements as the ALIGN attribute (which extends control to right alignment and justification as well.)

The interaction rules for this element are somewhat unusual since it was created by Netscape and implemented by many other browsers before it was officially integrated in to HTML 3.2. CENTER behaves most closely like other block formatting elements (in that a block is defined by having a linebreak before and after the contained content.)

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE3 | M | N4B2 | O
%Events%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Example
<center>text</center>
Parent Model
%Block Parent%
Content Model
%In-line Content% | %Block Content%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...