Name
q
Synopsis
<q>...</q>
Attributes
Core (id , class , style , title ), Internationalization,
Events |
cite="
url
"
|
The HTML Recommendation suggests that user agents should
automatically insert quotation marks before and after q
elements, therefore, authors are advised
to omit them in the source. As of this writing, Internet Explorer 5
for Macintosh, Netscape 6, and Opera do insert generic double
quotation marks, but Internet Explorer 6 for Windows does
not.
As mother always said,<q>
a guest is no one to criticize.</q>
Ideally, when used with the lang
(language) attribute, the browser may
insert language-specific quotation marks. Contextual quotation marks
will be better handled with CSS-based generated text, as described
in Chapter 23, once browser
support improves.
The cite
attribute is
intended to provide a link to additional information about the
source of the quote, but it is not well supported as of this
writing. Netscape 6.1 makes the cite link available in a contextual
menu accessed by right-clicking the quotation.
Get Web Design in a Nutshell, 3rd Edition 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.