Version-//W3C//DTD HTML 4.01//EN
ElementDIV
Purposegeneric language/style container
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
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
lang NAME #IMPLIEDlanguage code as RFC1766; language code
onclick CDATA #IMPLIEDscript expression; a pointer button was clicked
ondblclick CDATA #IMPLIEDscript expression; a pointer button was double clicked
onkeydown CDATA #IMPLIEDscript expression; a key was pressed down
onkeypress CDATA #IMPLIEDscript expression; a key was pressed and released
onkeyup CDATA #IMPLIEDscript expression; a key was released
onmousedown CDATA #IMPLIEDscript expression; a pointer button was pressed down
onmousemove CDATA #IMPLIEDscript expression; a pointer was moved within
onmouseout CDATA #IMPLIEDscript expression; a pointer was moved away
onmouseover CDATA #IMPLIEDscript expression; a pointer was moved onto
onmouseup CDATA #IMPLIEDscript expression; a pointer button was released
style CDATA #IMPLIEDstyle sheet data; associated style info
title CDATA #IMPLIEDtext; advisory title
Content( P | H1 | H2 | H3 | H4 | H5 | H6 | UL | OL | PRE | DL | DIV | NOSCRIPT | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS | #PCDATA | TT | I | B | BIG | SMALL | EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | ABBR | ACRONYM | A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO | INPUT | SELECT | TEXTAREA | LABEL | BUTTON )*
End tagRequired </DIV>
Referenced in BLOCKQUOTE BODY BUTTON DD DEL DIV FIELDSET FORM INS LI MAP NOSCRIPT OBJECT TD TH
Example
SourceAppearance
<DIV>
The space
station was
</DIV>
<DIV>
abandoned
</DIV>
<DIV>
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
2013-04-15 · John December · Contact · Terms of Use © December Communications, Inc.