ptg16476052
Quotations 137
7
The
tag supports one attribute, cite. The value of the cite attribute is the
URL that is the source of the quotation inside thetag. For example, the
tag for the preceding Dorothy Parker quotation could point back to the
original source using the cite attribute:
Guns aren't lawful,
nooses give.
gas smells awful.
You might as well live.
-- Dorothy Parker
The cite attribute does not produce visible changes on the page, and for that reason best
practices recommend that you not use it. Instead, you should use the tag directly
on the page to indicate the author, title, or URL of the work referenced.
For inline quotations, you should use the
tag, and, optionally, the cite attribute to
indicate them and provide the source URL. Thetag does not affect the visual display
of the page. Here’s an example of how it’s used:
As Albert Einstein said,
""
I never think of the future. It comes soon enough.
Finally, the element is used to cite the author, title, or URL of the work quoted.
Like thetag, it does not affect the visual display of the page in any way, although
both can be styled using CSS. And, as previously mentioned, the tag contents are
visible on the page and are the recommended method to cite quot ations. Here’s how the
tag is used:
In Roger Ebert's book The Great Movies, he lists
The Wizard of Oz as one of the great films.
Figu re 7.10 shows how all three tags are used.
FIGURE 7.10
Use of the
,
and tags.