Warning Sign

Shortcodes

Copy useful codes for warning sign ⚠ to use in websites, apps, blogs, and docs.

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

Customize Warning Sign

Customize ⚠, download it as SVG or PNG, or copy the generated HTML snippet.

  

How to use Warning Sign in HTML, CSS, and JS

Insert in HTML

1. Direct symbol:
<span>⚠</span>
HTML Code:
<span>&#9888;</span>
HEX Code:
<span>&#x26A0;</span>

Add with CSS

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

Set it in JavaScript

document.querySelector('.warning-sign').textContent = '⚠';
copied