149 out of 327 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Where is the reference?
Where is the reference? I'm looking for information about attributes, styles, events, collections etc.. Where did this info move?
  • 4/25/2012
  • MUN
Please back to previous format
The new   format is not   useful, please   return to the   previous format   where   you can actually   find information. The previous format was very good. 
.
.
Nicely done Microsoft!

This is insufficient and unworkable.  This is in no way a “reference” document as there is nothing to reference.  A real shame one has to go to other sites to get information on MS’s own products.  BTW... you click “Did you find this helpful?” and submit, the page is invalid.  Nicely done Microsoft!

Nicely done Microsoft!
 

This is insufficient and unworkable.  This is in no way a “reference” document as there is nothing to reference.  A real shame one has to go to other sites to get information on MS’s own products.  BTW... you click “Did you find this helpful?” and submit, the page is invalid.  Nicely done Microsoft!

Where is the Old MSDN help format
This new format is freakin ridiculous. Where is the old format. How do I find the styles associated with the div object, the methods, the scripts. Has everyone in MS gone crazy. I can't find anything in this new format. You guys expect me to use google to find help in your own website. Where have all the real programmers in MS gone to?
New doc format.
Totally agree. The new doc format is useless.
new format
yes this new format is rubbish, i used to use this site as a reference for all my DOM HTML work now its just arse
old msdn format
if you miss the old format for msdn (everyone does) you can access it here:  http://web.archive.org/web/20101112003632/http://msdn.microsoft.com/en-us/library/ms533029(VS.85).aspx