HTML Reference Guide
DIV
<DIV
ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
CLASS=type
ID=value
LANG=iso
NOWRAP>
</DIV>
Represents different kinds of containers, for example, chapter, section, abstract, or appendix. The end-tag is required.
- ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
- Specifies the default horizontal alignment for the contents of this element. This is needed for compatibility with deployed browsers and can be overridden by style sheets. The default is LEFT.
| LEFT |
Text is aligned to the left. |
| CENTER |
Text is centered. |
| RIGHT |
Text is aligned to the right. |
| JUSTIFY |
Text is justified to the right and left margins. |
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- LANG=iso
- Indicates the ISO standard language. Enter the standard abbreviation to indicate the language of the element.
- NOWRAP
- Specifies that the text lines within a document are not automatically wrapped by the browser.
Example
<DIV>
This text represents a section.
</DIV>
<DIV ALIGN=CENTER>
This text represents another section, and its text is centered.
</DIV>