HTML Entity for Uppercase Q Double Struck Capital (ℚ)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+211A

What Is Uppercase Q Double Struck Capital?

Uppercase Q double struck capital (ℚ) is the Unicode character at U+211A (DOUBLE-STRUCK CAPITAL Q) in Letterlike Symbols — a blackboard-bold Q used in mathematical notation, most often for the set of rational numbers.

Remember
Character     ℚ
Unicode       U+211A
Named entity  ℚ  (also ℚ)
Hex entity    ℚ
Decimal       ℚ
CSS escape    \211A
Not the same  Q · Ɋ · ℕ · ℙ

Prefer ℚ in HTML markup (alias ℚ also works). Numeric forms and typing ℚ in UTF-8 also work. Use a math-capable font when the blackboard-bold shape matters. Do not confuse this with plain Q or Q with hook tail.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entityℚHTML markup (preferred)
Named aliasℚHTML markup (same glyph)
Direct characterℚHTML text (UTF-8)
Hex entityℚHTML markup
Decimal entityℚHTML markup
CSS escape\211AStylesheet content

When to Use Which

SituationUse
Rational numbers / blackboard-bold Qℚ or type ℚ
Natural numbers (ℕ)ℕ (ℕ)
Prime numbers (ℙ)ℙ (ℙ)
Q with hook tail (Ɋ)Ɋ (U+024A)
Plain capital QQ (U+0051)
Generated text via ::before / ::aftercontent: "\211A"

Live Preview

Double-struck Q rendered alone and next to related symbols.

Large glyph ℚ
Math use q ∈ ℚ
Compared ℚ  |  Q  |  Ɋ  |  ℕ  |  ℙ
With entities Named: ℚ | Hex: ℚ | Decimal: ℚ

Complete HTML Example

One page that shows the symbol with named, hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce ℚ, plus a short rational-number membership example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase Q Double Struck Capital (ℚ)</title>
  <style>
    #point::after {
      content: "\211A";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &Qopf;</p>
  <p>Using Hex Code: &#x211A;</p>
  <p>Using HTML Code: &#8474;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ℚ</p>
  <p>Rationals: q &#x2208; &Qopf;</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &Qopf; is the clearest HTML form for U+211A (from “Qopf” / blackboard-bold letter naming). Alias &rationals; produces the same glyph.

2. Hex: U+211A → &#x211A; in HTML. Same glyph as the named entity.

3. Decimal: same code point as 8474 → &#8474;. Same glyph as hex and named.

4. CSS: use \211A in content (not an HTML entity). #point::after appends that ℚ after the paragraph text.

5. Typed / math: paste ℚ in UTF-8, or write q &#x2208; &Qopf; for a short membership label.

Pitfalls & Tips

Common mistakes when working with U+211A.

vs Q

Not a plain capital Q

ASCII Q (U+0051) is not letterlike. Use &Qopf; when you need the double-struck rationals symbol.

vs Ɋ

Not Q with hook tail

Ɋ is a Latin Extended-B letter. ℚ is a mathematical letterlike symbol. See uppercase Q hook tail.

vs bold

Not CSS bold

font-weight: bold only thickens a letter. U+211A is a dedicated double-struck character.

ℚ

Alias names the math set

&rationals; is an HTML5 alias for ℚ (the rationals). Prefer &Qopf; when teaching entity naming patterns.

Fonts

Letterlike coverage varies

Some fonts fall back to a plain Q. Prefer Cambria Math, STIX, or another math font for ℚ.

CSS vs HTML

Do not mix escapes

\211A belongs in CSS strings. &Qopf; / &#x211A; / &#8474; belong in HTML.

Browser Support

Double-struck capital Q (U+211A) and its entity forms (&Qopf;, &rationals;, &#x211A;, &#8474;, CSS \\211A) are supported in all mainstream browsers. Visible glyphs depend on Letterlike Symbols font coverage.

✓ Universal support

Uppercase Q Double Struck Capital (ℚ)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer IE 9+
Yes
U+211A / &Qopf; Full support

Bottom line: Prefer &Qopf; in HTML. Use \\211A only inside CSS content. Do not confuse with plain Q or Q with hook tail (Ɋ).

Key Takeaways

  • Unicode: double-struck Q is U+211A (decimal 8474) — glyph ℚ.
  • HTML: prefer &Qopf; (also &rationals;) — also &#x211A; / &#8474;.
  • CSS: use \211A inside content for generated text.
  • Meaning: ℚ is rational numbers / blackboard bold — not plain Q, not Ɋ.

One line: U+211A → &Qopf; / &#x211A; / &#8474; / CSS \211A.

Frequently Asked Questions

Use &Qopf; (named), &#x211A; (hex), &#8474; (decimal), type ℚ directly in UTF-8, or the CSS escape \211A in content. Prefer &Qopf; in normal HTML. Alias &rationals; also works.
U+211A (DOUBLE-STRUCK CAPITAL Q). Hex 211A, decimal 8474. It belongs to Letterlike Symbols (U+2100–U+214F).
Yes. Use &Qopf; (preferred). Numeric forms &#8474; and &#x211A; also work. HTML5 also defines &rationals; for the same character.
No. ℚ is double-struck capital Q (U+211A, &Qopf;). Plain Q is U+0051. Ɋ is Latin capital Q with hook tail (U+024A).
Use it in mathematical notation for the rational numbers (for example q ∈ ℚ), or whenever blackboard-bold Q is required — not as a substitute for plain Q.
HTML entities (&Qopf;, &#8474;, or &#x211A;) go in markup. The CSS escape \211A goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Double-struck capital Q is Unicode U+211A (decimal 8474) — glyph ℚ in Letterlike Symbols (U+2100–U+214F). HTML5 names it &Qopf; (also &rationals;). Official name: DOUBLE-STRUCK CAPITAL Q. In mathematics it usually denotes the rational numbers. Prefer a math-capable font for the blackboard-bold look.

Next: Uppercase Q Hook Tail

Learn the HTML entity for uppercase Q with hook tail — next in this sequence.

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful