HTML Entity for Comet (☄)

What You'll Learn
How to display the Comet (☄) symbol in HTML and CSS. This character is U+2604 (COMET) in the Miscellaneous Symbols block (U+2600–U+26FF). It is used in astronomy content, space-themed websites, educational material, and decorative sci-fi design.
There is no named HTML entity for U+2604. Use ☄ or ☄ in markup, or \2604 in stylesheet content. Do not confuse ☄ with punctuation Colon U+003A (:) or Costa Rican currency Colon Sign U+20A1 (₡).
⚡ Quick Reference — Comet
U+2604Miscellaneous Symbols (U+2600–U+26FF)
☄Hexadecimal reference
☄Decimal reference
—None (use numeric refs)
Name Value
──────────── ──────────
Unicode U+2604
Hex code ☄
HTML code ☄
Named entity —
CSS code \2604Complete HTML Example
This example shows U+2604 using hexadecimal and decimal character references, plus a CSS content escape. There is no named HTML entity:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2604";
}
</style>
</head>
<body>
<p>Comet using Hexa Decimal: ☄</p>
<p>Comet using HTML Code: ☄</p>
<p id="point">Comet using CSS Entity: </p>
</body>
</html>🌐 Browser Support
U+2604 is supported in modern browsers; glyph appearance may vary by font:
👀 Live Preview
See the Comet symbol in common space-themed contexts:
🧠 How It Works
Hexadecimal Code
☄ references code point U+2604 using hex digits 2604.
Decimal HTML Code
☄ is the decimal equivalent (9732) for the same character.
CSS Entity
\2604 is the CSS escape for U+2604, used in the content property of ::before or ::after.
Same visual result
All three methods produce the Comet glyph: ☄. Unicode U+2604 sits in Miscellaneous Symbols (U+2600–U+26FF). No named HTML entity exists.
Use Cases
The Comet symbol (☄) commonly appears in:
Planetarium sites, observatory blogs, and space agency content.
School and university science material, tutorials, and lessons.
Headers, navigation icons, and sci-fi thematic layouts.
Space games, sci-fi UIs, and achievement indicators.
Mark meteor showers, comet visibility, or astronomy events.
Unicode tables and Miscellaneous Symbols glossaries.
Provide alt text or aria-label="comet" when the symbol carries meaning.
💡 Best Practices
Do
- Use
☄or☄consistently in HTML - Pair with visible labels or
aria-labelfor meaningful icon uses - Choose fonts that support Miscellaneous Symbols (Segoe UI Symbol, Noto Sans Symbols)
- Group with other space symbols (cloud, sun) for thematic clarity
- Use
\2604only inside CSScontent, not in HTML text nodes
Don’t
- Use U+02604 notation—the correct code point is U+2604
- Confuse ☄ with punctuation colon (:) or currency ₡
- Assume a named entity exists—U+2604 has none
- Rely on the symbol alone without context for screen reader users
- Mix hex and decimal styles randomly in one file
Key Takeaways
No named entity—use numeric references
☄ ☄For CSS stylesheets, use the escape in the content property
\2604U+2604 COMET
Astronomy, education, space-themed UI, and event markers
Three methods, one glyph — widely supported in modern browsers
❓ Frequently Asked Questions
☄ (hex), ☄ (decimal), or \2604 in CSS content. There is no named HTML entity for U+2604.U+2604 (COMET). Miscellaneous Symbols (U+2600–U+26FF). Hex 2604, decimal 9732.☄ or ☄) go directly in HTML markup. The CSS escape \2604 is used in stylesheets, typically in the content property of pseudo-elements.Explore More HTML Entities!
Discover 1500+ HTML character references — math operators, symbols, arrows, and more.
8 people found this page helpful
