<DIV></DIV>
- Dividing and Grouping ContentThis tag is used to divide and section block-level content (such as tables, paragraphs, and lists). Styles and alignment can be applied to the section using the align
attribute and style sheets.
This tag must be closed at the end of the grouped content by typing </DIV>
.
<DIV>
%coreattrs %il8n %events |
D |
align=
|
[CI] |
---|---|---|
|
Specifies left alignment. | |
|
Specifies centered content. | |
|
Specifies right alignment. | |
|
Justifies content. If unsupported, it reverts to the default | |
This attribute controls content/text alignment. The default value is inherited; otherwise, it is left for left-to-right designated sections and right for right-to-left ones. |
Samples:
Discussion of topic "A"
Discussion of topic "B"
Discussion of topic "B.1"
Here is the code for the sample above:
<DIV align=center>
<H3>Section A</H3>
<P>Discussion of topic "A"</P>
</DIV>
<DIV align=right>
<H3>Section B</H3>
<P>Discussion of topic "B"</P>
<DIV>
<H4>Subsection B.1</H4>
<P>Discussion of topic "B.1"</P>
</DIV>
</DIV>
Notice that the <DIV>
designating subsection B.1 does not have its align
attribute set. It reverts to the default, which is inherited. Since it is a descendant (within) the <DIV>
designating Section B, it inherits right alignment.