HTML Entity for Uppercase Q Double Struck Capital (ℚ)

What You'll Learn
How to display the uppercase Q double struck capital (ℚ) in HTML using named entity, hexadecimal, decimal, and CSS escape methods. This mathematical symbol denotes the set of rational numbers, commonly written as ℚ in equations such as q ∈ ℚ. It is U+211A in the Letterlike Symbols block (U+2100–U+214F).
Render it with ℚ, ℚ, ℚ, or CSS escape \211A. The named entity ℚ is often the most readable option in HTML source. See also math entities.
⚡ Quick Reference — Uppercase Q Double Struck Capital Entity
U+211ALetterlike Symbols
ℚHexadecimal reference
ℚDecimal reference
ℚMost readable option
Name Value
──────────── ──────────
Unicode U+211A
Hex code ℚ
HTML code ℚ
Named entity ℚ
CSS code \211A
Meaning Double-struck capital Q (rational numbers)
Related U+0051 = plain Q
Block Letterlike Symbols (U+2100–U+214F)Complete HTML Example
A simple example showing the uppercase Q double struck capital (ℚ) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\211A";
}
</style>
</head>
<body>
<p>Symbol (hex): ℚ</p>
<p>Symbol (decimal): ℚ</p>
<p>Symbol (named): ℚ</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The uppercase Q double struck capital (ℚ) and the named entity ℚ are supported in all modern browsers:
👀 Live Preview
See the uppercase Q double struck capital (ℚ) in mathematical notation:
🧠 How It Works
Hexadecimal Code
ℚ uses the Unicode hexadecimal value 211A to display the character. The x prefix indicates hexadecimal format.
Decimal HTML Code
ℚ uses the decimal Unicode value 8474 to display the same character. A common method for Letterlike Symbols.
Named Entity
ℚ is the standard named entity for ℚ—readable in source HTML and part of the HTML5 entity set for blackboard bold letters.
CSS Entity
\211A is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All four methods produce the glyph: ℚ. Unicode U+211A sits in Letterlike Symbols. Do not confuse with plain Q (U+0051). Use math-friendly fonts for best rendering.
Use Cases
The uppercase Q double struck capital (ℚ) is commonly used in:
Denote the set of rational numbers ℚ in algebra, analysis, and number theory.
Represent number sets alongside ℕ (natural numbers), ℤ (integers), and ℝ (reals).
Textbooks, online courses, and tutorials explaining number systems and blackboard bold notation.
Research papers, theses, and journal articles in mathematics and computer science.
Equation editors, calculators, and interactive math apps that render set notation in HTML.
Technical documentation and formulas involving fractions, fields, and algebraic structures.
API docs, developer guides, and content explaining mathematical concepts involving rational sets.
💡 Best Practices
Do
- Use
ℚin HTML when possible for readability - Serve pages as UTF-8; you can also type ℚ directly in UTF-8 source
- Use math-friendly fonts (e.g. Cambria Math, STIX Two Math) for clear double-struck rendering
- Use fonts that support Letterlike Symbols characters
- Distinguish ℚ (U+211A) from plain
Q(U+0051)
Don’t
- Substitute plain
Qwhen ℚ is required for correct mathematical notation - Confuse ℚ (double-struck) with plain Latin
Q(U+0051) - Put CSS escape
\211Ain HTML text nodes - Use
\0211Ain CSS—the correct escape is\211A - Omit UTF-8 encoding on pages with mathematical symbols
Key Takeaways
Four references render ℚ; named entity is most readable
ℚ ℚ ℚFor CSS stylesheets, use the escape in the content property
\211AUnicode U+211A — DOUBLE-STRUCK CAPITAL Q
Essential for rational numbers, set theory, and mathematical content
Previous: Uppercase Q Next: Uppercase Q Hook Tail
❓ Frequently Asked Questions
ℚ (named), ℚ (hex), ℚ (decimal), or \211A in CSS content. The named entity ℚ is the most readable for HTML content.U+211A (DOUBLE-STRUCK CAPITAL Q). Letterlike Symbols block. Hex 211A, decimal 8474. Commonly used to represent the set of rational numbers.ℚ or ℚ) or the named entity ℚ is used in HTML content. The CSS entity (\211A) is used in CSS, e.g. in the content property of pseudo-elements. Both produce ℚ but in different contexts.Explore More HTML Entities!
Discover 1500+ HTML character references — math symbols, diacritics, and more.
8 people found this page helpful
