Illustrating text alignment

Be sure to view the source code.

This document uses different text-align values for the body and headings. They are specified using style rules. The h1 is centered. The h2 is aligned to the right. Anything else (except preformatted text) is justified. Inline elements such as strongly emphasized text cannot be given separate alignment.

The style rules

        body {text-align: justify}
        h1 {text-align: center}
        h2 {text-align: right}