HTML Entity for Uppercase P Script Capital (℘)

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

What Is Uppercase P Script Capital?

Uppercase P script capital (℘) is the Unicode character at U+2118 (SCRIPT CAPITAL P) in Letterlike Symbols — a script-style P used in mathematical notation, most often for the Weierstrass elliptic function.

Remember
Character     ℘
Unicode       U+2118
Named entity  ℘  (also ℘)
Hex entity    ℘
Decimal       ℘
CSS escape    \2118
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 script shape matters. Do not confuse this with plain P, double-struck ℙ, 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\2118Stylesheet content

When to Use Which

SituationUse
Weierstrass p / script capital P℘ or type ℘
Prime numbers (ℙ)ℙ (ℙ)
P with hook (Ƥ)Ƥ (U+01A4)
Plain capital PP (U+0050)
Generated text via ::before / ::aftercontent: "\2118"

Live Preview

Script capital P rendered alone and next to related symbols.

Large glyph ℘
Math use ℘(z)
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 Weierstrass-function label.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase P Script Capital (℘)</title>
  <style>
    #point::after {
      content: "\2118";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &weierp;</p>
  <p>Using Hex Code: &#x2118;</p>
  <p>Using HTML Code: &#8472;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ℘</p>
  <p>Weierstrass: &weierp;(z)</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &weierp; is the clearest HTML form for U+2118 (from “Weierstrass p”). Alias &wp; produces the same glyph.

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

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

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

5. Typed / math: paste ℘ in UTF-8, or write &weierp;(z) for a short function label.

Pitfalls & Tips

Common mistakes when working with U+2118.

vs P

Not a plain capital P

ASCII P (U+0050) is not letterlike. Use &weierp; when you need the script Weierstrass symbol.

vs ℙ

Not double-struck P

ℙ (&Popf;) is blackboard-bold P for primes. ℘ is script. See uppercase P double struck.

vs italic

Not CSS italic

font-style: italic only slants a letter. U+2118 is a dedicated script letterlike character.

Fonts

Letterlike coverage varies

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

CSS vs HTML

Do not mix escapes

\2118 belongs in CSS strings. &weierp; / &#x2118; / &#8472; belong in HTML.

Math

Mark math context

For formulas, wrap math in appropriate markup (for example MathML or a math role) so assistive tech can treat it as math.

Browser Support

Script capital P (U+2118) and its entity forms (&weierp;, &wp;, &#x2118;, &#8472;, CSS \\2118) are supported in all mainstream browsers. Visible glyphs depend on Letterlike Symbols font coverage.

✓ Universal support

Uppercase P Script Capital (&#x2118;)

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+2118 / &weierp; Full support

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

Key Takeaways

  • Unicode: script capital P is U+2118 (decimal 8472) — glyph ℘.
  • HTML: prefer &weierp; (also &wp;) — also &#x2118; / &#8472;.
  • CSS: use \2118 inside content for generated text.
  • Meaning: ℘ is Weierstrass / script P — not plain P, not ℙ.

One line: U+2118 → &weierp; / &#x2118; / &#8472; / CSS \2118.

Frequently Asked Questions

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

Did you know?

Script capital P is Unicode U+2118 (decimal 8472) — glyph ℘ in Letterlike Symbols (U+2100–U+214F). HTML5 names it &weierp; (also &wp;). Official name: SCRIPT CAPITAL P. In mathematics it usually denotes the Weierstrass elliptic function. Prefer a math-capable font for the script look.

Next: Uppercase Q

Learn the HTML entity for plain capital Q — next in this sequence.

Continue tutorial →

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