december.com
/
html
|
Tutor
·
Demo
·
Specs
·
Techs
·
Books
|
search
Version
W3C//DTD HTML 3.2 Final//EN
Element
CENTER
Purpose
center text or other elements
Description
This element encloses text or other elements that should be centered. This element started out as a non-standard Netscape extension. Its widespread use motivated its inclusion in the HTML 3.2 standard. You could use
DIV
or
P
instead.
Start tag
Required <CENTER>
Attributes
NONE
Content
(
H1
|
H2
|
H3
|
H4
|
H5
|
H6
|
#PCDATA
|
TT
|
I
|
B
|
U
|
STRIKE
|
BIG
|
SMALL
|
SUB
|
SUP
|
EM
|
STRONG
|
DFN
|
CODE
|
SAMP
|
KBD
|
VAR
|
CITE
|
A
|
IMG
|
APPLET
|
FONT
|
BASEFONT
|
BR
|
SCRIPT
|
MAP
|
INPUT
|
SELECT
|
TEXTAREA
|
P
|
UL
|
OL
|
DIR
|
MENU
|
PRE
|
DL
|
DIV
|
CENTER
|
BLOCKQUOTE
|
FORM
|
ISINDEX
|
HR
|
TABLE
|
ADDRESS
)*
End tag
Required </CENTER>
Referenced in
BLOCKQUOTE
BODY
CENTER
DD
DIR
DIV
FORM
LI
MENU
TD
TH
Example
Source
Appearance
<CENTER>
Kevin and Cheryl <P> cordially invite you to <P> their wedding <P> on <P> August 24, 2014
</CENTER>
Kevin and Cheryl
cordially invite you to
their wedding
on
August 24, 2014
Bookmark
·
Search
·
Market
2008-07-15 ·
John December
·
Contact
·
Terms of Use
©
December Communications, Inc.