White Hexagon
⬡
Shortcodes
Copy and paste codes for White Hexagon symbol ⬡ to use in your websites, apps, blogs, and more.
Unicode
U+2B21
HTML Code
⬡
HEX Code
⬡
CSS Code
\2B21
JS/JSON
\u2B21
Unix/C/PHP/JAVA
0x2B21
URL-encode
%E2%AC%A1
copied
Customize White Hexagon Symbol
Customize ⬡ symbol as you like and download White Hexagon 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 White Hexagon symbol in HTML, CSS, and JS?
Insert ⬡ White Hexagon using HTML
1. Copy-paste White Hexagon directly:
<span>⬡</span>
2. HTML Decimal Code:
<span>⬡</span>
3. Hexadecimal Code:
<span>⬡</span>
Preview: ⬡
Add White Hexagon symbol with CSS
.white-hexagon::before {
content: '\\2B21';
}
Preview: White Hexagon
White Hexagon JavaScript Code
1. Direct Symbol:
document.querySelector('.white-hexagon').textContent = '⬡';
2. Unicode Escape for ⬡:
document.querySelector('.white-hexagon').textContent = '\u2B21';
Preview: ⬡