Chapter 8. Formatting Paragraphs by Using Style Sheets

Formatting Paragraphs by Using Style Sheets

In this chapter you will learn to:

  • ✓ Indent paragraphs.

  • ✓ Apply a border to a paragraph.

  • ✓ Specify the horizontal alignment of a paragraph.

  • ✓ Specify vertical space within a paragraph.

In Chapter 7, you learned how to use style rules to apply character formatting, including font style, size, and color. Now let’s go a step further and apply those concepts to paragraph formatting.

Paragraph formatting refers to formatting that is applicable only to entire paragraphs, and not to individual characters. For example, a paragraph can be double-spaced, but an individual character cannot be. You saw some ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.