HTML Entity for Black Heart Suit (♥)

What You'll Learn
How to display the Black Heart Suit (♥) in HTML using various entity methods. This character is U+2665 in the Miscellaneous Symbols block (U+2600–U+26FF), part of the playing-card suit range (U+2660–U+2667). It represents the hearts suit and is also known as a “valentine” symbol for expressing affection in digital communication.
Unlike many symbols in this series, ♥ has a named HTML entity: ♥. You can also use ♥, ♥, or \2665 in CSS content. In Bridge, hearts rank above diamonds and clubs (♣ < ♦ < ♥ < ♠). All four methods render the same glyph in modern browsers.
⚡ Quick Reference — Black Heart Suit Entity
U+2665Miscellaneous Symbols (playing cards)
♥Hexadecimal reference
♥Decimal reference
♥Most readable option
Name Value
──────────── ──────────
Unicode U+2665
Hex code ♥
HTML code ♥
Named entity ♥
CSS code \2665Complete HTML Example
This example shows ♥ using hexadecimal and decimal references, the named entity ♥, and a CSS content escape on a pseudo-element:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2665";
}
</style>
</head>
<body>
<p>Black Heart Suit using Hexa Decimal: ♥</p>
<p>Black Heart Suit using HTML Code: ♥</p>
<p>Black Heart Suit using HTML Entity: ♥</p>
<p id="point">Black Heart Suit using CSS Entity: </p>
</body>
</html>🌐 Browser Support
U+2665 and ♥ are universally supported in modern browsers:
👀 Live Preview
See the heart suit alongside the other playing-card suits (font-dependent):
🧠 How It Works
Hexadecimal Code
♥ uses the Unicode hexadecimal value 2665 to display the Black Heart Suit symbol. The x prefix indicates hexadecimal format.
Decimal HTML Code
♥ uses the decimal Unicode value 9829 to display the same character. This is one of the most commonly used methods.
CSS Entity
\2665 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Named Entity
♥ is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.
Same visual result
All four methods produce ♥. Unicode U+2665 is the hearts suit in the playing-card range U+2660–U+2667 (Miscellaneous Symbols).
Use Cases
The Black Heart Suit (♥) is commonly used for:
Valentine’s Day themes, love letters, dating sites, and affection indicators.
Playing cards, hand notation, and suit indicators without images.
Poker, Bridge, Solitaire, and other card interfaces.
Romantic layouts, headers, borders, and ornamental accents.
Expressing love, appreciation, or interest in posts and messages.
Bidding, contracts, and suit notation in card-game documentation.
Pair ♥ with text or ARIA (e.g. “Hearts”); the glyph alone is not enough.
💡 Best Practices
Do
- Prefer
♥for readable, semantic source markup - Use the same font stack for all four suits (♠ ♥ ♥ ♥)
- Remember Bridge suit order: ♥ < ♥ < ♥ < ♠
- Add
aria-labelor visible text for standalone suit glyphs - Test rendering across browsers and devices
Don’t
- Confuse ♥ (U+2665) with ♦, ♣, ♠, or emoji hearts (different code points)
- Mix entity styles randomly in one codebase
- Use CSS escape
\2665inside HTML text nodes - Assume every visitor knows suit symbols without a legend
- Rely on color alone when red/black distinction matters
Key Takeaways
Four equivalent references render ♥
♥ ♥ ♥CSS content escape
\2665U+2665 is hearts; playing-card suits are U+2660–U+2667
♥ is the most readable named entity for this suit
Pair suit glyphs with text or ARIA for inclusive card-game UX
❓ Frequently Asked Questions
♥ (hex), ♥ (decimal), ♥ (named), or \2665 in CSS content. All produce ♥.U+2665 (hex 2665, decimal 9829). Miscellaneous Symbols, playing-card suits U+2660–U+2667. Unicode name BLACK HEART SUIT.♥ or ♥) go directly in markup. The CSS escape \2665 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.♥, ♥, and ♥ 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.
8 people found this page helpful
