<DIV>
Use the DIV tag to organize logical blocks of information (content.)
The DIV element allows you to name content and reference it through
scripting. It also allows you to do manage the layout of content on
your web page without using tables.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
ALIGN |
Indicates the alignment of content contained with the DIV. May be one of left, right, center, justify |
|
Example
First section
<DIV align="right">
Second section
</DIV>
Third section
Renders As:
First section
Second section
Third section
Compatibility
HTML 4.01
|