Alignment Options: Headings and Paragraphs


Left-Aligned Paragraph & Heading

Alignment can take the four values "center", "left" (the default), " right" and "justify". This paragraph is "left" (default) aligned, so that the text lines up with the left margin, and the right side is ragged.

Right-Aligned Paragraph & Heading

Here is a right-aligned paragraph. This can look odd, but is useful for special emphasis, or if placed against a left-aligned image. Note how the right margin is straight, and the left is ragged.

Center-Aligned Paragraph & Heading

Here is a centered paragraph. In principle, this means both the left and right margins will be ragged. This is a useful way of centering images. For example:

Justified Paragraph & Heading

Here is a justified paragraph. In principle, this means both the left and right margins should be smooth, with wordspaces being adjusted to keep it that way. If your browser does not understand ALIGN="justify" (most do not), it will use the default left-justification.