q element | q object
[This documentation is preliminary and is subject to change.]
Sets apart a quotation in text.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 9.2.2
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | inline |
DOM Information
Inheritance Hierarchy
Remarks
Windows Internet Explorer 8 and later. The value of the cite attribute depends on the current document compatibility mode. In addition, quotation marks are now added to the content of the element.
Examples
This example uses the Q element to set apart a quotation in text.
<p>He said, <q style="font-style: italic">Hi there!</q></p>
See also
Build date: 3/8/2012

