HTML Entity for Uppercase P Double Struck Capital (ℙ)

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

What Is Uppercase P Double Struck Capital?

Uppercase P double struck capital (ℙ) is the Unicode character at U+2119 (DOUBLE-STRUCK CAPITAL P) in Letterlike Symbols — a blackboard-bold P used in mathematical notation, most often for the set of prime numbers.

Remember
Character     ℙ
Unicode       U+2119
Named entity  ℙ  (also ℙ)
Hex entity    ℙ
Decimal       ℙ
CSS escape    \2119
Not the same  P · ℘ · Ƥ · ℕ

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 P, script ℘, or P with hook.

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\2119Stylesheet content

When to Use Which

SituationUse
Prime numbers / blackboard-bold Pℙ or type ℙ
Natural numbers (ℕ)ℕ (ℕ)
Script / Weierstrass P (℘)℘ (℘)
P with hook (Ƥ)Ƥ (U+01A4)
Plain capital PP (U+0050)
Generated text via ::before / ::aftercontent: "\2119"

Live Preview

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

Large glyph ℙ
Math use p ∈ ℙ
Compared ℙ  |  P  |  ℘  |  Ƥ  |  ℕ
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 prime-number membership example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase P Double Struck Capital (ℙ)</title>
  <style>
    #point::after {
      content: "\2119";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &Popf;</p>
  <p>Using Hex Code: &#x2119;</p>
  <p>Using HTML Code: &#8473;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ℙ</p>
  <p>Primes: p &#x2208; &Popf;</p>
</body>
</html>
Try It Yourself

How It Works

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

2. Hex: U+2119 → &#x2119; in HTML. Same glyph as the named entity.

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

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

5. Typed / math: paste ℙ in UTF-8, or write p &#x2208; &Popf; for a short membership label.

Pitfalls & Tips

Common mistakes when working with U+2119.

vs P

Not a plain capital P

ASCII P (U+0050) is not letterlike. Use &Popf; when you need the double-struck primes symbol.

vs ℘

Not script / Weierstrass P

℘ (&weierp;) is a script letterlike P. ℙ is double-struck. See uppercase P script capital.

vs bold

Not CSS bold

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

ℙ

Alias &primes; ≠ prime mark

&primes; is an HTML5 alias for ℙ (the primes set). It is not the prime mark ′ (U+2032).

Fonts

Letterlike coverage varies

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

CSS vs HTML

Do not mix escapes

\2119 belongs in CSS strings. &Popf; / &#x2119; / &#8473; belong in HTML.

Browser Support

Double-struck capital P (U+2119) and its entity forms (&Popf;, &primes;, &#x2119;, &#8473;, CSS \\2119) are supported in all mainstream browsers. Visible glyphs depend on Letterlike Symbols font coverage.

✓ Universal support

Uppercase P 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+2119 / &Popf; Full support

Bottom line: Prefer &Popf; in HTML. Use \\2119 only inside CSS content. Do not confuse with plain P or &weierp; (℘).

Key Takeaways

  • Unicode: double-struck P is U+2119 (decimal 8473) — glyph ℙ.
  • HTML: prefer &Popf; (also &primes;) — also &#x2119; / &#8473;.
  • CSS: use \2119 inside content for generated text.
  • Meaning: ℙ is prime numbers / blackboard bold — not plain P, not ℘.

One line: U+2119 → &Popf; / &#x2119; / &#8473; / CSS \2119.

Frequently Asked Questions

Use &Popf; (named), &#x2119; (hex), &#8473; (decimal), type ℙ directly in UTF-8, or the CSS escape \2119 in content. Prefer &Popf; in normal HTML. Alias &primes; also works.
U+2119 (DOUBLE-STRUCK CAPITAL P). Hex 2119, decimal 8473. It belongs to Letterlike Symbols (U+2100–U+214F).
Yes. Use &Popf; (preferred). Numeric forms &#8473; and &#x2119; also work. HTML5 also defines &primes; for the same character.
No. ℙ is double-struck capital P (U+2119, &Popf;). Plain P is U+0050. ℘ is script capital P / Weierstrass p (&weierp;, U+2118).
Use it in mathematical notation for the prime numbers (for example p ∈ ℙ), or whenever blackboard-bold P is required — not as a substitute for plain P.
HTML entities (&Popf;, &#8473;, or &#x2119;) go in markup. The CSS escape \2119 goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Double-struck capital P is Unicode U+2119 (decimal 8473) — glyph ℙ in Letterlike Symbols (U+2100–U+214F). HTML5 names it &Popf; (also &primes;). Official name: DOUBLE-STRUCK CAPITAL P. In mathematics it usually denotes the prime numbers. Prefer a math-capable font for the blackboard-bold look.

Next: Uppercase P Hook

Learn the HTML entity for uppercase P with hook — 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