HTML Entity for Heavy Black Heart (❤)

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

What You'll Learn

How to display the Heavy Black Heart symbol (❤) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2764 (HEAVY BLACK HEART) in the Dingbats block (U+2700–U+27BF). It is one of the most recognizable symbols for love, favorites, and likes in UI and content.

Render it with ❤, ❤, or CSS escape \2764. There is no named HTML entity. Do not confuse ❤ with U+2665 (♥, black heart suit) or emoji hearts in other blocks; on many systems U+2764 may render red, but the code point is the heavy black heart.

⚡ Quick Reference — Heavy Black Heart

Unicode U+2764

Dingbats block

Hex Code ❤

Hexadecimal reference

HTML Code ❤

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2764
Hex code       ❤
HTML code      ❤
Named entity   (none)
CSS code       \2764
Meaning        Heavy black heart
Related        U+2665 = heart suit (♥)
1

Complete HTML Example

This example demonstrates the Heavy Black Heart (❤) using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2764";
  }
 </style>
</head>
<body>
<p>Heavy Black Heart using Hexadecimal: &#x2764;</p>
<p>Heavy Black Heart using HTML Code: &#10084;</p>
<p id="point">Heavy Black Heart using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Heavy Black Heart (❤) is widely supported in modern browsers when the font includes Dingbats:

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

👀 Live Preview

Heavy Black Heart (❤) in context, compared with the playing-card heart suit (♥):

Favorite ❤ Add to favorites
Like 12 ❤ likes
Large glyph
U+2764 vs U+2665 ❤   ♥
Numeric refs &#x2764; &#10084; \2764

🧠 How It Works

1

Hexadecimal Code

&#x2764; uses the Unicode hexadecimal value 2764 to display the heart. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#10084; uses the decimal Unicode value 10084 to display the same character.

HTML markup
3

CSS Entity

\2764 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after for favorite or like buttons.

CSS stylesheet
=

Same visual result

All three methods produce . Unicode U+2764 is in the Dingbats block. Next: Heavy Check Mark (✔).

Use Cases

The Heavy Black Heart (❤) is commonly used in:

❤ Favorites & likes

Favorite, Like, or Love buttons in e-commerce, social apps, and content platforms.

💝 Valentine’s

Romance themes, greeting cards, and love-related messaging.

📱 Social & dating

Reactions, profile badges, and match or like indicators.

🛒 Wishlists

Save for later and add-to-favorites in catalog UI.

⭐ Ratings

Helpful votes and positive review highlights.

🎨 Design

Decorative hearts in headers, footers, and brand assets.

💡 Best Practices

Do

  • Pair ❤ with text or aria-label (e.g. “Add to favorites”, “Like”)
  • Use content: "\2764" on buttons via ::before or ::after
  • Declare UTF-8 with <meta charset="utf-8">
  • Test glyph color and shape across fonts and platforms
  • Keep one numeric style (hex or decimal) per project
  • Use visible labels on interactive favorite controls

Don’t

  • Rely on ❤ alone for accessibility-critical actions
  • Confuse U+2764 (❤) with U+2665 (♥, heart suit)
  • Expect a named HTML entity for U+2764
  • Use CSS \2764 in HTML text nodes
  • Assume color is always red on every OS (font-dependent)

Key Takeaways

1

Two HTML numeric references plus CSS insert U+2764

&#x2764; &#10084;
2

For CSS, use \2764 in the content property

3

Unicode U+2764 — HEAVY BLACK HEART (❤)

4

Not the same as black heart suit U+2665 (♥)

❓ Frequently Asked Questions

Use &#x2764; (hex), &#10084; (decimal), or \2764 in CSS content. There is no named entity. All three methods render the Heavy Black Heart (❤) correctly.
U+2764 (HEAVY BLACK HEART). Dingbats block. Hex 2764, decimal 10084. The symbol (❤) is widely used for love, favorites, and likes.
For favorites and like buttons, Valentine’s and romance content, social media and dating apps, product wishlists, ratings and reviews, and any UI that needs a universal love or favorite indicator.
HTML references (&#10084; or &#x2764;) go in markup. The CSS escape \2764 is used in stylesheets, typically on ::before or ::after. Both produce ❤.
Named entities cover common ASCII, Latin-1, and widely used symbols. U+2764 uses numeric hex (&#x2764;) or decimal (&#10084;) codes, which is standard for characters in the Dingbats block.

Explore More HTML Entities!

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