HTML Entity for Uppercase B Script Capital (ℬ)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+212C

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

Unicode U+212C

Letterlike Symbols

Hex Code ℬ

Hexadecimal reference

HTML Code ℬ

Decimal reference

Named Entity ℬ

Bernoulli notation (preferred)

Reference Table
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)
1

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:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\212C";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#x212C;</p>
<p>Symbol (decimal): &#8492;</p>
<p>Symbol (named): &bernou;</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The script capital B (ℬ) and the named entity &bernou; are supported in all modern browsers:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the script capital B (ℬ) in mathematical contexts:

Large glyph
BernoulliThe Bernoulli numbers ℬ0, ℬ1, ℬ2, …
Compare stylesB (capital) vs ℬ (script)
Named entity&bernou; → ℬ
Numeric refs&#x212C; &#8492; \212C

🧠 How It Works

1

Hexadecimal Code

&#x212C; uses the Unicode hexadecimal value 212C to display the script capital B. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8492; uses the decimal Unicode value 8492 to display the same character. A common method when hex is less convenient.

HTML markup
3

CSS Entity

\212C is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
4

Named Entity

&bernou; is the semantic named entity for Bernoulli notation — the most readable option in mathematical HTML source.

HTML markup
=

Same visual result

All four methods produce the glyph: . Unicode U+212C sits in Letterlike Symbols (U+2100–U+214F). Prefer &bernou; in math markup for clarity.

Use Cases

The script capital B (ℬ) is commonly used in:

📐 Math notation

Formulas and equations requiring script-style capital letters.

📚 Bernoulli numbers

Traditional notation ℬn for Bernoulli number sequences.

📄 Academic writing

Research papers, theses, and scholarly content with mathematical symbols.

🔬 Scientific content

Physics, engineering, and science articles using formal notation.

🎨 Typography

Elegant mathematical typography in publications and web design.

🧮 Education

Math tutorials, online courses, and instructional content about number theory.

⚙ Equation tools

HTML-based equation editors and formula rendering when MathML is not used.

💡 Best Practices

Do

  • Use &bernou; for readable Bernoulli notation in HTML
  • Pick one style (named, hex, or decimal) per project for consistency
  • Use \212C in CSS content when 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 B when ℬ is required for mathematical meaning
  • Put CSS escape \212C in HTML text nodes
  • Use &bernou; in CSS (named entities are HTML-only)
  • Assume all fonts render script capitals identically
  • Mix entity styles randomly in one file

Key Takeaways

1

Four references all render ℬ

&#x212C; &#8492; &bernou;
2

For CSS stylesheets, use the escape in the content property

\212C
3

Unicode U+212C — SCRIPT CAPITAL B (Letterlike Symbols)

4

Prefer &bernou; in math markup — mnemonic for Bernoulli numbers

❓ Frequently Asked Questions

Use &#x212C; (hex), &#8492; (decimal), &bernou; (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.
In mathematical notation, Bernoulli number formulas, academic and scientific writing, and any content requiring script-style capital B symbols.
&bernou; is a mnemonic named entity for Bernoulli notation. Numeric codes (&#8492; or &#x212C;) are direct Unicode references. Both produce ℬ; the named entity is more readable in math content.
Yes. Use \212C in the content property of ::before or ::after. Named entities like &bernou; work in HTML markup only, not in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — math symbols, letters, and more.

All HTML Entities →

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