HTML Entity for Black Diamond Suit (♦)

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

What You'll Learn

How to display the Black Diamond Suit (♦) in HTML using various entity methods. This character is U+2666 in the Miscellaneous Symbols block (U+2600–U+26FF), part of the playing-card suit range (U+2660–U+2667). Diamonds is one of the four French-suited suits; it is the only suit not adapted from the German deck—it replaced Bells. In Bridge, diamonds rank second-lowest (above clubs).

Unlike many symbols in this series, ♦ has a named HTML entity: ♦. You can also use ♦, ♦, or \2666 in CSS content. All four methods render the same glyph in modern browsers.

⚡ Quick Reference — Black Diamond Suit Entity

Unicode U+2666

Miscellaneous Symbols (playing cards)

Hex Code ♦

Hexadecimal reference

HTML Code ♦

Decimal reference

Named Entity ♦

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2666
Hex code       ♦
HTML code      ♦
Named entity   ♦
CSS code       \2666
1

Complete HTML Example

This example shows ♦ using hexadecimal and decimal references, the named entity ♦, and a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2666";
  }
 </style>
</head>
<body>
<p>Black Diamond Suit using Hexa Decimal: &#x2666;</p>
<p>Black Diamond Suit using HTML Code: &#9830;</p>
<p>Black Diamond Suit using HTML Entity: &diams;</p>
<p id="point">Black Diamond Suit using CSS Entity: </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

U+2666 and &diams; are universally supported in modern browsers:

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

👀 Live Preview

See the diamond suit alongside the other playing-card suits (font-dependent):

Large glyph
All four suits ♠ ♥ ♦ ♦
Bridge order (low→high) ♦ < ♦ < ♥ < ♠
Named entity &diams;
Monospace refs &#x2666; &#9830; \2666

🧠 How It Works

1

Hexadecimal Code

&#x2666; uses the Unicode hexadecimal value 2666 to display the Black Diamond Suit symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9830; uses the decimal Unicode value 9830 to display the same character. This is one of the most commonly used methods.

HTML markup
3

CSS Entity

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

CSS stylesheet
4

Named Entity

&diams; is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.

HTML markup
=

Same visual result

All four methods produce . Unicode U+2666 is the diamonds suit in the playing-card range U+2660–U+2667 (Miscellaneous Symbols).

Use Cases

The Black Diamond Suit (♦) is commonly used for:

🃏 Card game sites

Hands, suit indicators, and table UI without image sprites.

🎮 Gaming apps

Poker, Bridge, Skat, Solitaire, and other card interfaces.

📝 Bridge & Skat

Bidding, contracts, and suit-ranking notation in docs.

🎓 Teaching

Rules, strategy guides, and card-game tutorials.

🎨 Decorative design

Casino themes, game branding, and playing-card aesthetics.

💬 Forums

Hand analysis and move notation in card-game communities.

♿ Accessibility

Pair ♦ with text or ARIA (e.g. “Diamonds”); the glyph alone is not enough.

💡 Best Practices

Do

  • Prefer &diams; for readable, semantic source markup
  • Use the same font stack for all four suits (♠ ♥ ♦ ♦)
  • Remember Bridge suit order: ♦ < ♦ < ♥ < ♠
  • Add aria-label or visible text for standalone suit glyphs
  • Test rendering across browsers and devices

Don’t

  • Confuse ♦ (U+2666) with ♣, ♠, or the dingbat ❖ (U+2756)
  • Mix entity styles randomly in one codebase
  • Use CSS escape \2666 inside HTML text nodes
  • Assume every visitor knows suit symbols without a legend
  • Rely on color alone when red/black distinction matters

Key Takeaways

1

Four equivalent references render ♦

&#x2666; &#9830; &diams;
2

CSS content escape

\2666
3

U+2666 is diamonds; playing-card suits are U+2660–U+2667

4

&diams; is the most readable named entity for this suit

5

Pair suit glyphs with text or ARIA for inclusive card-game UX

❓ Frequently Asked Questions

Use &#x2666; (hex), &#9830; (decimal), &diams; (named), or \2666 in CSS content. All produce ♦.
U+2666 (hex 2666, decimal 9830). Miscellaneous Symbols, playing-card suits U+2660–U+2667. Unicode name BLACK DIAMOND SUIT.
On card game websites, in gaming interfaces, Bridge and Skat notation, educational content, and any design that displays playing-card suits as text.
HTML entities (&#9830; or &diams;) go directly in markup. The CSS escape \2666 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.
Yes. &diams;, &#9830;, and &#x2666; are equivalent in modern browsers and all render ♦.

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