Block Formatting elements are the most common element in an HTML
document. We'll look at some paragraph formatting first.
Paragraph
We've already demonstrated <P> in
our Basic Template. A normal
paragraph has a single blank line after it, will ignore
line breaks in the text, and condense multiple spaces in the text into a
single space. The closing </P>
tag isn't necessary, whenever the browser runs into a new block formatting
tag, it will understand that the previous paragraph has ended. You
can add the ALIGN
attribute to the tag to
center it, <P ALIGN=center>, or
right-align it, <P ALIGN=right>.
This should be centered.
This paragraph may be right-aligned
(doesn't work in all browsers).
To go back to left-aligned use <P
ALIGN=left>.
Address Information
The Address tag is used to enclose contact information, addresses and
the like. It is often rendered with a slightly indented left margin
and italics. Use the <BR>
(line break) tag for explicit line breaks after each line.
<ADDRESS>Peter Conrad Cumminsky<BR>
Middletown, CA 95461</ADDRESS>
Peter Conrad Cumminsky
Middletown, CA 95461
Large Quotations
<BLOCKQUOTE>Used when more than
a few lines from a document are being quoted. Block quotations are often
rendered indented.</BLOCKQUOTE>
|