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