Warning Sign

Shortcodes

Copy and paste codes for Warning Sign symbol ⚠ to use in your websites, apps, blogs, and more.

Unicode
U+26A0
HTML Code
⚠
HEX Code
⚠
CSS Code
\26A0
JS/JSON
\u26A0
Unix/C/PHP/JAVA
0x26A0
URL-encode
%E2%9A%A0
copied

Customize Warning Sign Symbol

Customize ⚠ symbol as you like and download Warning Sign 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 Warning Sign symbol in HTML, CSS, and JS?

Insert ⚠ Warning Sign using HTML

1. Copy-paste Warning Sign directly:
<span>⚠</span>
2. HTML Decimal Code:
<span>&#9888;</span>
3. Hexadecimal Code:
<span>&#x26A0;</span>
Preview:

Add Warning Sign symbol with CSS

.warning-sign::before {
    content: '\\26A0';
}
Preview: Warning Sign

Warning Sign JavaScript Code

1. Direct Symbol:
document.querySelector('.warning-sign').textContent = '⚠';
2. Unicode Escape for ⚠:
document.querySelector('.warning-sign').textContent = '\u26A0';
Preview: