div element | div object
[This documentation is preliminary and is subject to change.]
Specifies a container that renders HTML.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 7.5.4
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

