HTML Entity for Uppercase B Script Capital (ℬ)

What You'll Learn
How to display the script capital B (ℬ) in HTML using hexadecimal, decimal, named, and CSS escape methods. This character is part of the Letterlike Symbols block and is widely used in mathematical notation, especially for Bernoulli numbers. Its official Unicode name is SCRIPT CAPITAL B (U+212C).
Render it with ℬ, ℬ, the named entity ℬ, or CSS escape \212C in the content property.
⚡ Quick Reference — Script Capital B Entity
U+212CLetterlike Symbols
ℬHexadecimal reference
ℬDecimal reference
ℬBernoulli notation (preferred)
Name Value
──────────── ──────────
Unicode U+212C
Hex code ℬ
HTML code ℬ
Named entity ℬ
CSS code \212C
Meaning Script capital B (Bernoulli)
Block Letterlike Symbols (U+2100–U+214F)Complete HTML Example
A simple example showing the script capital B (ℬ) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\212C";
}
</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 script capital B (ℬ) and the named entity ℬ are supported in all modern browsers:
👀 Live Preview
See the script capital B (ℬ) in mathematical contexts:
ℬ → ℬ🧠 How It Works
Hexadecimal Code
ℬ uses the Unicode hexadecimal value 212C to display the script capital B. The x prefix indicates hexadecimal format.
Decimal HTML Code
ℬ uses the decimal Unicode value 8492 to display the same character. A common method when hex is less convenient.
CSS Entity
\212C is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Named Entity
ℬ is the semantic named entity for Bernoulli notation — the most readable option in mathematical HTML source.
Same visual result
All four methods produce the glyph: ℬ. Unicode U+212C sits in Letterlike Symbols (U+2100–U+214F). Prefer ℬ in math markup for clarity.
Use Cases
The script capital B (ℬ) is commonly used in:
Formulas and equations requiring script-style capital letters.
Traditional notation ℬn for Bernoulli number sequences.
Research papers, theses, and scholarly content with mathematical symbols.
Physics, engineering, and science articles using formal notation.
Elegant mathematical typography in publications and web design.
Math tutorials, online courses, and instructional content about number theory.
HTML-based equation editors and formula rendering when MathML is not used.
💡 Best Practices
Do
- Use
ℬfor readable Bernoulli notation in HTML - Pick one style (named, hex, or decimal) per project for consistency
- Use
\212Cin CSScontentwhen generating the symbol via pseudo-elements - Use fonts that support Letterlike Symbols (e.g. Cambria Math, STIX)
- Consider MathML or LaTeX for complex multi-line equations
Don’t
- Substitute plain
Bwhen ℬ is required for mathematical meaning - Put CSS escape
\212Cin HTML text nodes - Use
ℬin CSS (named entities are HTML-only) - Assume all fonts render script capitals identically
- Mix entity styles randomly in one file
Key Takeaways
Four references all render ℬ
ℬ ℬ ℬFor CSS stylesheets, use the escape in the content property
\212CUnicode U+212C — SCRIPT CAPITAL B (Letterlike Symbols)
Prefer ℬ in math markup — mnemonic for Bernoulli numbers
Previous: Uppercase B Lower Stroke (Ƀ) Next: Uppercase B Six (Ƅ)
❓ Frequently Asked Questions
ℬ (hex), ℬ (decimal), ℬ (named), or \212C in CSS content. All produce ℬ.U+212C (SCRIPT CAPITAL B). Letterlike Symbols block. Hex 212C, decimal 8492. Commonly used for Bernoulli numbers in mathematical notation.ℬ is a mnemonic named entity for Bernoulli notation. Numeric codes (ℬ or ℬ) are direct Unicode references. Both produce ℬ; the named entity is more readable in math content.\212C in the content property of ::before or ::after. Named entities like ℬ work in HTML markup only, not in CSS.Explore More HTML Entities!
Discover 1500+ HTML character references — math symbols, letters, and more.
8 people found this page helpful
