Version | W3C//DTD HTML 3.2 Final//EN | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Element | BODY | ||||||||||||||||||||||||||||
Purpose | code as #RRGGBB in hexadecimal or 16 named colors; document body | ||||||||||||||||||||||||||||
Description | This element encloses the text flow of a document.
Note that you only have one body.
For example:
Set attribute colors with color codes as #RRGGBB in hexadecimal or 16 named colors<BODY alink="blue" bgcolor="#CCFFCC" link="red" text="olive" vlink="#104E8B"> <H1> Hello, World! </H1> <P> This is a minimal "hello world" HTML document. </P> </BODY> | ||||||||||||||||||||||||||||
Start tag | Optional <BODY> | ||||||||||||||||||||||||||||
Attributes |
| ||||||||||||||||||||||||||||
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 | Optional </BODY> | ||||||||||||||||||||||||||||
Referenced in | HTML |