Specifies a container that renders HTML.
HTML Syntax
<DIV ALIGN=CENTER | LEFT | RIGHT | JUSTIFY CLASS=classname DATAFLD=colname DATAFORMATAS=HTML | TEXT DATASRC=#ID ID=value LANG=language LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS STYLE=css1-properties TITLE=text event = script >
Remarks
The DIV element is a block element and requires a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
Members
Styles
Example
This example uses two DIV elements to align two sections of text differently.
<DIV> This text represents a section. </DIV> <DIV ALIGN=CENTER> This text represents another section, and its text is centered. </DIV>