<q>: The HTML quote element
I. Description
The
HTML
<q>
element is used when you would
like to insert a short quote into some text on a webpage. The text
inside of the
<q>
element will be rendered with double quotation
marks around it.
If you would like to quote a larger piece of text you should consider
using the
<blockquote>
element rather than the
<q>
element.
See Also
The
<blockquote>
element.
II. Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Example of a Blockquote</h1>
<p>
The chef said <q>and now for the pièce de résistance</q> as he presented
the final dish of the evening.
</p>
</body>
</html>
This document was last updated: