Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

136 LESSON 7: Formatting Text with HTML and CSS


Macbeth soliloquy I used in the example for line breaks would have worked better as a
<blockquote> than a s a simple paragraph. Here’s an example:
<p>From Shakespeare's <cite>MacBeth</cite>:

<blockquote>Tomorrow, and tomorrow, and tomorrow,<br>
Creeps in this petty pace from day to day,<br>
To the last syllable of recorded time;<br>
And all our yesterdays have lighted fools<br>
The way to dusty death. Out, out, brief candle!<br>
Life's but a walking shadow; a poor player,<br>
That struts and frets his hour upon the stage,<br>
And then is heard no more: it is a tale <br>
Told by an idiot, full of sound and fury, <br>
Signifying nothing.</blockquote>

As with paragraphs, you can split lines in a <blockquote> using the line break tag, <br>.
The following inp ut example shows a n example of this use:

Input ▼
<blockquote>
Guns aren't lawful, <br />
nooses give.<br />
gas smells awful.<br />
You might as well live.
</blockquote>
<p>-- Dorothy Parker</p>

Figure 7.9 shows how the preceding input example appears in a browser.

Output ▼


FIGURE 7.9
A block quotation.
Free download pdf