Working with Page Breaks

Page breaks force a break in a line found within a paragraph. They are especially useful when forced line breaks are important to the flow of the text, such as in a poem (see Example 2-3).

Example 2-3. Working with page breaks

<p>What earthly tongue, and, oh! what human pen<br />Can tell that scene of suffering, too severe.<br />'Tis ever present to my sight, oh! When<br />Will the sound cease its torture on mine ear?</p>

You'll note that I've first placed these lines of markup in a paragraph because you'll want them to have some kind of structure. The paragraph is a logical choice because a poem is really a series of paragraphs, broken by line. Figure 2-3 shows the way the browser displays breaks.

Figure 2-3. ...

Get Spring Into HTML and CSS 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.