HTML Entity for Black Chess King (♚)

Beginner
⏱️ 5 min read
📚 Updated: May 2026
🎯 1 Code Example
Unicode U+265A

What You'll Learn

How to display the Black Chess King (♚) in HTML and CSS. This character is U+265A (BLACK CHESS KING) in the Miscellaneous Symbols block (U+2600–U+26FF), with the other standard chess piece glyphs (U+2654–U+265F). In the starting position the black king stands on e8; it moves one square in any direction, and the game ends when the king is checkmated.

There is no named HTML entity for U+265A. Use ♚ or ♚ in markup, or \265A in stylesheet content. For accessible boards, combine glyphs with square labels, aria-label, or hidden text so assistive technology does not only announce an unlabeled symbol.

⚡ Quick Reference — Black Chess King

Unicode U+265A

Miscellaneous Symbols

Hex Code ♚

Hexadecimal reference

HTML Code ♚

Decimal reference

Named Entity

None (use numeric refs)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+265A
Hex code       ♚
HTML code      ♚
Named entity   —
CSS code       \265A
1

Complete HTML Example

This example shows U+265A using hexadecimal and decimal character references, plus a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\265A";
  }
 </style>
</head>
<body>
<p>Black Chess King using Hexa Decimal: &#x265A;</p>
<p>Black Chess King using HTML Code: &#9818;</p>
<p id="point">Black Chess King using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+265A is widely supported; piece artwork varies by typeface:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

Compare black and white king glyphs (font-dependent):

Black king
White king
Black back rank ♜♞♝♛♚♝♞♜
Caption Black king is U+265A; white king is U+2654. Black pieces span U+265A\u2013U+265F.
Monospace refs &#x265A; &#9818; \265A

🧠 How It Works

1

Hexadecimal Code

&#x265A; references code point U+265A using hex digits 265A after the #x prefix.

HTML markup
2

Decimal HTML Code

&#9818; is the decimal equivalent (9818) for the same Black Chess King character.

HTML markup
3

CSS Entity

\265A is the CSS escape for U+265A, used in the content property of ::before or ::after.

CSS stylesheet
=

Same visual result

Hex, decimal, and CSS escapes all produce . There is no named HTML entity for U+265A.

Use Cases

The Black Chess King (♚) is commonly used for:

♟ Chess sites

Boards, PGN comments, and king-in-check highlights without image sprites.

🛡 Check / mate UI

Badges or inline markers when the black king is attacked or mated.

🎮 Apps & puzzles

Endgame drills and king-activity lessons in lightweight web views.

🎓 Teaching

Castling, opposition, and king safety diagrams beside algebraic text.

💬 Forums

Figurine king in analysis when images are off or slow to load.

📄 Print CSS

Printable scoresheets and pairing boards from HTML.

♿ Accessibility

Announce square + role (e.g. “black king on e8”); ♚ alone is not enough.

💡 Best Practices

Do

  • Use one font stack for every piece so the board looks cohesive
  • Prefer numeric references in generated markup from engines and databases
  • Offer a text-only board mode (coordinates + piece letters) as an alternative
  • Use \265A only inside CSS content, not inside HTML text nodes
  • Pair king glyphs with clear check/mate wording for screen reader users

Don’t

  • Confuse black king U+265A with white king U+2654 in data or CSS
  • Rely on a lone ♚ glyph as the only signal for checkmate or game result
  • Assume every visitor reads figurine notation without a legend
  • Ship critical tournament UI using only dingbats without accessible fallbacks
  • Forget RTL: mixed LTR coordinates with RTL UI can reorder inline pieces oddly

Key Takeaways

1

Two numeric references render the same glyph

&#x265A; &#9818;
2

CSS content escape

\265A
3

U+265A is black king; U+2654 is white king

4

Chess pieces U+2654–U+265F share one Unicode subrange in Miscellaneous Symbols

5

Pair glyphs with text, coordinates, or ARIA for inclusive chess UX

❓ Frequently Asked Questions

Use &#x265A; (hex), &#9818; (decimal), or \265A in CSS content. There is no named entity; all valid methods render ♚.
U+265A (hex 265A, decimal 9818). Miscellaneous Symbols. Unicode name BLACK CHESS KING.
When you render chess content as UTF-8 text pieces instead of bitmap or vector assets, and you have confirmed font coverage for all pieces on the board.
Numeric references belong in HTML. The \265A escape belongs in stylesheets (for example on pseudo-elements). Do not paste CSS escapes into HTML text nodes.
No. Use &#x265A;, &#9818;, or \265A in CSS depending on whether you are authoring markup or styles.

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, 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