HTML Entity for Warning Sign (⚠)

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

What You'll Learn

How to display the Warning Sign symbol (⚠) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+26A0 (WARNING SIGN) in the Miscellaneous Symbols block—a widely recognized caution indicator for alerts, safety notices, and UI feedback.

Render it with ⚠, ⚠, or CSS escape \26A0. There is no named HTML entity. Do not confuse ⚠ with the police car light emoji 🚨 (U+1F6A8) or vertical male stroke sign ⚨ (U+26A8).

⚡ Quick Reference — Warning Sign Entity

Unicode U+26A0

Miscellaneous Symbols

Hex Code ⚠

Hexadecimal reference

HTML Code ⚠

Decimal reference

Named Entity

No named entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+26A0
Hex code       ⚠
HTML code      ⚠
Named entity   (none)
CSS code       \26A0
Meaning        Warning / caution sign
Not the same   U+1F6A8 = 🚨 (police car light emoji)
               U+26A8 = ⚨ (vertical male stroke sign)
Block          Miscellaneous Symbols (U+2600–U+26FF)
1

Complete HTML Example

A simple example showing the Warning Sign symbol (⚠) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\26A0";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#x26A0;</p>
<p>Symbol (decimal): &#9888;</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

The Warning Sign symbol (⚠) is supported in modern browsers when the font includes Miscellaneous Symbols glyphs:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Warning Sign symbol rendered live in alert contexts:

Alert message⚠ Caution: unsaved changes will be lost.
Large glyph
Form validation⚠ Please enter a valid email address.
Not the same as🚨 (U+1F6A8, police car light emoji)
Numeric refs&#x26A0; &#9888; \26A0

🧠 How It Works

1

Hexadecimal Code

&#x26A0; uses the Unicode hexadecimal value 26A0 to display the character. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9888; uses the decimal Unicode value 9888 to display the same character. A common method for warning symbols.

HTML markup
3

CSS Entity

\26A0 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All three methods produce the glyph: . Unicode U+26A0 sits in Miscellaneous Symbols. Not the same as 🚨 (emoji) or ⚨ (U+26A8).

Use Cases

The Warning Sign symbol (⚠) is commonly used in:

🔔 Alerts

Alert messages, notifications, and warning dialogs.

📄 Caution messages

Safety notices, hazard labels, and caution banners.

📢 Important notices

Announcements and informational messages needing attention.

🛡 Safety warnings

Hazard indicators and risk notifications.

🖥 UI design

Form validation, interactive elements, and warning states.

❌ Error feedback

Validation errors and system notifications.

📚 Documentation

User guides and technical docs highlighting cautions.

💡 Best Practices

Do

  • Pair ⚠ with clear text or role="alert" / aria-label
  • Use numeric references when escaping is required
  • Pick one style (hex or decimal) per project for consistency
  • Use fonts that support Miscellaneous Symbols
  • Combine with color and wording for accessible warnings

Don’t

  • Confuse ⚠ (U+26A0) with 🚨 (police car light emoji)
  • Rely on the symbol alone without explanatory text
  • Mix entity styles randomly in one file
  • Use CSS escape \26A0 inside HTML markup
  • Expect a named HTML entity—none exists for ⚠

Key Takeaways

1

Type ⚠ directly, or use hex/decimal references

&#x26A0; &#9888;
2

For CSS stylesheets, use the escape in the content property

\26A0
3

Unicode U+26A0 — WARNING SIGN

4

Not the same as 🚨 (emoji) or ⚨ (vertical male stroke)

❓ Frequently Asked Questions

Use &#x26A0; (hex), &#9888; (decimal), or \26A0 in CSS content. There is no named HTML entity. In UTF-8 you can also type ⚠ directly.
U+26A0 (WARNING SIGN). Miscellaneous Symbols block. Hex 26A0, decimal 9888. Distinct from U+1F6A8 (🚨, police car light emoji).
In alerts, caution messages, safety notices, important announcements, form validation, error feedback, and any UI that needs to highlight potential issues or important information.
HTML entities (&#9888; or &#x26A0;) go directly in markup. The CSS escape \26A0 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.
Named HTML entities are reserved for commonly used ASCII, Latin-1, and widely recognized symbols. Miscellaneous Symbols like ⚠ use numeric codes. Use &#9888; or &#x26A0; in HTML, or \26A0 in CSS.

Explore More HTML Entities!

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