HTML Entity for Uppercase P Double Struck Capital (ℙ)

What You'll Learn
How to display the uppercase P double struck capital (ℙ) in HTML using named entity, hexadecimal, decimal, and CSS escape methods. This mathematical symbol denotes the set of prime numbers, commonly written as ℙ in equations such as p ∈ ℙ. It is U+2119 in the Letterlike Symbols block (U+2100–U+214F).
Render it with ℙ, ℙ, ℙ, or CSS escape \2119. The named entity ℙ is often the most readable option in HTML source. See also math entities.
⚡ Quick Reference — Uppercase P Double Struck Capital Entity
U+2119Letterlike Symbols
ℙHexadecimal reference
ℙDecimal reference
ℙMost readable option
Name Value
──────────── ──────────
Unicode U+2119
Hex code ℙ
HTML code ℙ
Named entity ℙ
CSS code \2119
Meaning Double-struck capital P (prime numbers)
Related U+0050 = plain P
Block Letterlike Symbols (U+2100–U+214F)Complete HTML Example
A simple example showing the uppercase P 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: "\2119";
}
</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 P double struck capital (ℙ) and the named entity ℙ are supported in all modern browsers:
👀 Live Preview
See the uppercase P double struck capital (ℙ) in mathematical notation:
🧠 How It Works
Hexadecimal Code
ℙ uses the Unicode hexadecimal value 2119 to display the character. The x prefix indicates hexadecimal format.
Decimal HTML Code
ℙ uses the decimal Unicode value 8473 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
\2119 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+2119 sits in Letterlike Symbols. Do not confuse with plain P (U+0050). Use math-friendly fonts for best rendering.
Use Cases
The uppercase P double struck capital (ℙ) is commonly used in:
Denote the set of prime numbers ℙ in number theory, algebra, and cryptography.
Represent number sets alongside ℕ (natural numbers), ℤ (integers), and ℚ (rationals).
Textbooks, online courses, and tutorials explaining number theory 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 prime factorization and modular arithmetic.
API docs, developer guides, and content explaining mathematical concepts involving prime 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+2119) from plain
P(U+0050)
Don’t
- Substitute plain
Pwhen ℙ is required for correct mathematical notation - Confuse ℙ (double-struck) with plain Latin
P(U+0050) - Put CSS escape
\2119in HTML text nodes - Assume all fonts render Letterlike Symbols identically
- 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
\2119Unicode U+2119 — DOUBLE-STRUCK CAPITAL P
Essential for prime numbers, set theory, and mathematical content
Previous: Uppercase P Next: Uppercase P Hook
❓ Frequently Asked Questions
ℙ (named), ℙ (hex), ℙ (decimal), or \2119 in CSS content. The named entity ℙ is the most readable for HTML content.U+2119 (DOUBLE-STRUCK CAPITAL P). Letterlike Symbols block. Hex 2119, decimal 8473. Commonly used to represent the set of prime numbers.ℙ or ℙ) or the named entity ℙ is used in HTML content. The CSS entity (\2119) 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
