div element | div object (Internet Explorer)

Switch View :
ScriptFree
div element | div object

[This documentation is preliminary and is subject to change.]

Specifies a container that renders HTML.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 7.5.4

Standards information

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     div

Remarks

Examples

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>

 

 

Build date: 3/8/2012