: The Q Element
Last updated: 2026-09-12
<q>The Q Element
Defines a short inline quotation; browsers automatically add quotation marks around it.
| Category | Text Content |
|---|---|
| Content Model | Phrasing content |
| Allowed Parents | Any element that accepts phrasing content |
| Content Tag | Yes — requires closing </q> tag |
| Status | Standard |
📝 Syntax
<q>quoted text</q>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
cite | URL | A URL pointing to the source of the quotation. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <q> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: <q> adds quotes automatically and localizes them; for block-level quotes use <blockquote>.