HTML Entity for Comet (☄)

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

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

Unicode U+2604

Miscellaneous Symbols (U+2600–U+26FF)

Hex Code ☄

Hexadecimal reference

HTML Code ☄

Decimal reference

Named Entity

None (use numeric refs)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2604
Hex code       ☄
HTML code      ☄
Named entity   —
CSS code       \2604
1

Complete HTML Example

This example shows U+2604 using hexadecimal and decimal character references, plus a CSS content escape. There is no named HTML entity:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2604";
  }
 </style>
</head>
<body>
<p>Comet using Hexa Decimal: &#x2604;</p>
<p>Comet using HTML Code: &#9732;</p>
<p id="point">Comet using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2604 is supported in modern browsers; glyph appearance may vary by font:

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

👀 Live Preview

See the Comet symbol in common space-themed contexts:

Astronomy ☄ Comet visibility tonight
Education Lesson: ☄ Solar system objects
Sci-fi UI ☄ Space mission   ☄ Asteroid belt
Calendar Meteor shower ☄ Dec 14
Monospace refs &#x2604; &#9732; \2604

🧠 How It Works

1

Hexadecimal Code

&#x2604; references code point U+2604 using hex digits 2604.

HTML markup
2

Decimal HTML Code

&#9732; is the decimal equivalent (9732) for the same character.

HTML markup
3

CSS Entity

\2604 is the CSS escape for U+2604, used in the content property of ::before or ::after.

CSS stylesheet
=

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:

🔭 Astronomy

Planetarium sites, observatory blogs, and space agency content.

📚 Education

School and university science material, tutorials, and lessons.

🌌 Space-themed design

Headers, navigation icons, and sci-fi thematic layouts.

🎮 Games & entertainment

Space games, sci-fi UIs, and achievement indicators.

📅 Events & calendars

Mark meteor showers, comet visibility, or astronomy events.

🔤 Symbol references

Unicode tables and Miscellaneous Symbols glossaries.

♿ Accessibility

Provide alt text or aria-label="comet" when the symbol carries meaning.

💡 Best Practices

Do

  • Use &#x2604; or &#9732; consistently in HTML
  • Pair with visible labels or aria-label for 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 \2604 only inside CSS content, 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

1

No named entity—use numeric references

&#x2604; &#9732;
2

For CSS stylesheets, use the escape in the content property

\2604
3

U+2604 COMET

4

Astronomy, education, space-themed UI, and event markers

5

Three methods, one glyph — widely supported in modern browsers

❓ Frequently Asked Questions

Use &#x2604; (hex), &#9732; (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.
In astronomy and space-themed websites, educational and science content, sci-fi and gaming interfaces, event calendars, and any page needing a comet icon without image files.
Numeric references (&#9732; or &#x2604;) go directly in HTML markup. The CSS escape \2604 is used in stylesheets, typically in the content property of pseudo-elements.
Named HTML entities cover commonly used characters; symbols like U+2604 in Miscellaneous Symbols use numeric codes. This is standard for many symbol characters in HTML.

Explore More HTML Entities!

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