VersionW3C//DTD HTML 3.2 Final//EN
ElementDIV
Purposedefine parts of a document
DescriptionThis element identifies parts of a document. You put elements in a DIV element so that you can set their alignments. Note that you don't get new paragraphs just because of a DIV. Think of DIV as a grouping element.
Start tagRequired <DIV>
Attributes
NameTypeDefaultComment
align( left | center | right )#IMPLIEDalignment of following text
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 tagRequired </DIV>
Referenced in BLOCKQUOTE BODY CENTER DD DIR DIV FORM LI MENU TD TH
Example
SourceAppearance
<DIV Align="right">
The space
station was
</DIV>
<DIV Align="left">
abandoned
</DIV>
<DIV Align="center">
because of the damage:
<UL>
<LI>Low power
<LI>Damaged hull
<LI>Fires
</UL>
</DIV>
The space station was
abandoned
because of the damage:
  • Low power
  • Damaged hull
  • Fires
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.