Comet

Shortcodes

Copy and paste codes for Comet symbol ☄ to use in your websites, apps, blogs, and more.

Unicode
U+2604
HTML Code
☄
HEX Code
☄
CSS Code
\2604
JS/JSON
\u2604
Unix/C/PHP/JAVA
0x2604
URL-encode
%E2%98%84
copied

Customize Comet Symbol

Customize ☄ symbol as you like and download Comet as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
 

How to add Comet symbol in HTML, CSS, and JS?

Insert ☄ Comet using HTML

1. Copy-paste Comet directly:
<span>☄</span>
2. HTML Decimal Code:
<span>&#9732;</span>
3. Hexadecimal Code:
<span>&#x2604;</span>
Preview:

Add Comet symbol with CSS

.comet::before {
    content: '\\2604';
}
Preview: Comet

Comet JavaScript Code

1. Direct Symbol:
document.querySelector('.comet').textContent = '☄';
2. Unicode Escape for ☄:
document.querySelector('.comet').textContent = '\u2604';
Preview: