10.07.2017 Views

246996016-HTML5-Step-by-Step

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8 Formatting<br />

Paragraphs <strong>by</strong> Using<br />

Style Sheets<br />

In this chapter, you will learn how to<br />

4 Indent paragraphs.<br />

4 Apply a border to a paragraph.<br />

4 Specify the horizontal alignment of a paragraph.<br />

4 Specify vertical space within a paragraph.<br />

In Chapter 7, “Formatting Text <strong>by</strong> Using Style Sheets,” you learned how to use style rules<br />

to apply character formatting, including font style, size, and color. Now you can go a step<br />

further and apply those concepts to paragraph formatting.<br />

Paragraph formatting refers to the layout of entire paragraphs, not the placement or<br />

spacing of individual characters. For example, a paragraph can be double-spaced, but<br />

an individual character cannot. You saw some style-based paragraph formatting in<br />

Chapter 4, “Using Lists and Backgrounds,” when you applied bullet characters and numbering<br />

styles. Later, in Chapter 6, “Introduction to Style Sheets,” you worked with several<br />

ordered and unordered list items. The same principles apply when formatting other types<br />

of paragraphs.<br />

In this chapter, you’ll learn how to control indentation and spacing around a paragraph,<br />

and how to specify a paragraph’s alignment. You’ll also learn how to set the line height<br />

for a paragraph (that is, the space between lines of text) and how to place and format a<br />

border around a paragraph.<br />

See Also Do you need only a quick refresher on the topics in this chapter? See the Key Points at<br />

the end of this chapter.<br />

125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!