You are here:  NetStrider » Tutorials » HTMLRef » Commands » DIV «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <DIV> Command next

Command Syntax:

<DIV command parameters>
  contains a page division
</DIV>

The command encloses, defines and contains an HTML document division.  In the Netscape browser it functions essentially the same as the <P> (paragraph) command.  In the Internet Explorer browser it is designed to be used in conjunction with Style Sheets.

See also:  <P>.

Command Parameters:

align="left | right | center"

Where:

  • left -
    aligns the paragraph text to the left margin.

  • right -
    aligns the paragraph text to the right margin.

  • center -
    aligns the paragraph text centered on the page margins.
Examples:

<DIV align="right">
  a block of text to be aligned
  to the right margin
</DIV>

Enclosed text is aligned
to the right margin.
----------------------->

<DIV align="center">
  a block of text to be aligned
  centered between the margins
</DIV>

Enclosed text is aligned
in the center.
<----------------------->
Return to Section A:D


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz