More
More
Double-Struck Capital Q HTML entity ℚ
ℚ is the HTML entity for Double-Struck Capital Q ℚ (U+211A). Copy ℚ, ℚ and the CSS, JavaScript, Python and URL escapes.
- Entity
ℚ- Also written
ℚ- Code point
- U+211A
- Unicode name
- DOUBLE-STRUCK CAPITAL Q
- Block
- Letterlike Symbols
- Category
- Uppercase letter (Lu)
- Since
- Unicode 1.1
- Defined in
- HTML5
Codes to copy
| HTML named | ℚWorks in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | ℚWorks in HTML and XML. | |
| HTML hex | ℚWorks in HTML and XML. | |
| CSS | content: "\211A";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u211A"Also valid in JSON. | |
| Python | "\u211a"Python 3 string literal. | |
| Python by name | "\N{DOUBLE-STRUCK CAPITAL Q}"Readable alternative using the Unicode name. | |
| URL | %E2%84%9APercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 84 9A3 bytes. | |
| UTF-16 | 211A1 code unit, which is what JavaScript length counts. |
When to use it
ℚ writes U+211A (Double-Struck Capital Q), a capital letter from the Unicode Letterlike Symbols block, encoded since Unicode 1.1. These characters exist mostly for compatibility with older character sets; for anything beyond simple cases, <sup>, <sub> or MathML give more control.
The name comes from the HTML5 list (much of it shared with MathML), so it works in every current browser but not in XML or XHTML served as XML, where the numeric reference is the safe choice.
More letterlike symbols, numbers and fractions
ℜBlack-Letter Capital R℗Sound Recording CopyrightℝDouble-Struck Capital R№Numero Sign℞Prescription TakeℕDouble-Struck Capital NℤDouble-Struck Capital ZℓScript Small L
All letterlike symbols, numbers and fractions · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).