Version-//W3C//DTD HTML 4.01 Transitional//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
align( left | center | right | justify )#IMPLIEDtext alignment
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
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 | DIR | MENU | PRE | DL | DIV | CENTER | NOSCRIPT | BLOCKQUOTE | FORM | ISINDEX | HR | TABLE | FIELDSET | ADDRESS | #PCDATA | TT | I | B | U | S | STRIKE | BIG | SMALL | EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | ABBR | ACRONYM | A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO | INPUT | SELECT | TEXTAREA | LABEL | BUTTON )*
End tagRequired </DIV>
Referenced in APPLET BLOCKQUOTE BODY BUTTON CENTER DD DEL DIR DIV FIELDSET FORM INS LI MAP MENU NOSCRIPT OBJECT TD TH
Example
SourceAppearance
<DIV Align="center" Style="background-color: yellow; border: 10pt; border-style: dashed;">
The space
station was
abandoned.
</DIV>
<DIV Align="right">
</DIV>
<DIV Align="center">
This was because of the damage.
</DIV>
<DIV Align="justify">
The station had low power,
a damaged hull, and suffered frequent fires.
Air fans inside the station were faulty, oxygen bottles leaked,
and computer circuits were damaged because of the fires.
The entrance door didn't close completely,
the insulation was cracked,
and
most of the solar panels were missing.
But the radio worked fine.
</DIV>
The space station was abandoned.
This was because of the damage.
The station had low power, a damaged hull, and suffered frequent fires. Air fans inside the station were faulty, oxygen bottles leaked, and computer circuits were damaged because of the fires. The entrance door didn't close completely, the insulation was cracked, and most of the solar panels were missing. But the radio worked fine.
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.