HTML Entity for White Diamond Suit (♢)

What You'll Learn
How to display the White Diamond Suit (♢) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2662 (WHITE DIAMOND SUIT) in the Miscellaneous Symbols block (U+2600–U+26FF), part of the playing-card suit range (U+2660–U+2667). It is the outline counterpart to the filled black diamonds suit ♦ (U+2666).
Render it with ♢, ♢, or CSS escape \2662. There is no named HTML entity for ♢—use ♦ only when you need the black diamonds glyph ♦. All three numeric methods render the white/outline diamonds symbol in modern browsers.
⚡ Quick Reference — White Diamond Suit
U+2662Miscellaneous Symbols (playing cards)
♢Hexadecimal reference
♢Decimal reference
—Use numeric codes only
Name Value
──────────── ──────────
Unicode U+2662
Hex code ♢
HTML code ♢
Named entity (none)
CSS code \2662
Meaning White (outline) diamonds suit
Related U+2666 = ♦ (black diamond suit, ♦)
U+2667 = ♧ (white club suit)
Block Miscellaneous Symbols (U+2660–U+2667 playing cards)Complete HTML Example
A simple example showing White Diamond Suit (♢) using hexadecimal code, decimal HTML code, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#suit:after{
content: "\2662";
}
</style>
</head>
<body>
<p>White Diamond Suit (hex): ♢</p>
<p>White Diamond Suit (decimal): ♢</p>
<p id="suit">White Diamond Suit (CSS): </p>
</body>
</html>🌐 Browser Support
U+2662 is supported in modern browsers when the font includes Miscellaneous Symbols glyphs:
👀 Live Preview
See White Diamond Suit (♢) alongside related playing-card symbols:
♦)🧠 How It Works
Hexadecimal Code
♢ uses the Unicode hexadecimal value 2662 to display the White Diamond Suit symbol. The x prefix indicates hexadecimal format.
Decimal HTML Code
♢ uses the decimal Unicode value 9826 to display the same character. A common method for symbol characters in HTML.
CSS Entity
\2662 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All three methods produce ♢. Unicode U+2662 is the white diamonds suit in the playing-card range U+2660–U+2667. Not the same as ♦ (black diamond, ♦).
Use Cases
White Diamond Suit (♢) is commonly used in:
Outline suit indicators and lightweight card UI without image sprites.
Poker, Bridge, Solitaire, and other playing-card interfaces.
Casino themes, game branding, and playing-card aesthetics.
Rules, strategy guides, and card-game tutorials.
Hand analysis and move notation in card-game communities.
Buttons, badges, and navigation with a diamonds motif.
Pair ♢ with text or ARIA (e.g. “Diamonds”); the glyph alone is not enough.
💡 Best Practices
Do
- Use ♢ when you need the outline diamonds glyph; use ♦ /
♦for filled black diamonds - Use the same font stack for all suit symbols in a card UI
- Add
aria-labelor visible text for standalone suit glyphs - Pick one numeric style (hex or decimal) per project for consistency
- Test rendering across browsers and devices
Don’t
- Confuse ♢ (white diamond) with ♦ (black diamond) or
♦ - Assume
♦renders ♢—it renders ♦ - Mix up decimal
9826(♢) with9830(♦) - Use CSS escape
\2662inside HTML text nodes - Assume every visitor knows suit symbols without a legend
Key Takeaways
Type ♢ directly, or use hex/decimal references
♢ ♢For CSS stylesheets, use the escape in the content property
\2662Unicode U+2662 — WHITE DIAMOND SUIT (playing-card range)
No named entity; ♦ is for U+2666 (black diamond) only
Previous: White Club Suit (♧) Next: White Down Pointing Index (☟)
❓ Frequently Asked Questions
♢ (hex), ♢ (decimal), or \2662 in CSS content. There is no named HTML entity. In UTF-8 you can also type ♢ directly.U+2662 (WHITE DIAMOND SUIT). Playing-card suits U+2660–U+2667 in Miscellaneous Symbols. Hex 2662, decimal 9826.♢ or ♢) go directly in markup. The CSS escape \2662 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.♣, ♥, ♦, ♠) but not the white/outline variants. Use ♢ or ♢ for ♢.Explore More HTML Entities!
Discover 1500+ HTML character references — symbols, punctuation, and more.
8 people found this page helpful
