HTML Entity for White Flag (⚐)

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

What You'll Learn

How to display the White Flag symbol (⚐) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2690 (WHITE FLAG) in the Miscellaneous Symbols block (U+2600–U+26FF)—a simple outline flag on a pole, often used to represent surrender or truce.

Render it with ⚐, ⚐, or CSS escape \2690. There is no named HTML entity. Do not confuse ⚐ with the waving white flag emoji 🏳 (U+1F3F3) or the black flag symbol ⚑ (U+2691).

⚡ Quick Reference — White Flag

Unicode U+2690

Miscellaneous Symbols

Hex Code ⚐

Hexadecimal reference

HTML Code ⚐

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2690
Hex code       ⚐
HTML code      ⚐
Named entity   (none)
CSS code       \2690
Meaning        White flag
Related        U+2691 = ⚑ (black flag)
               U+1F3F3 = 🏳 (waving white flag emoji)
Block          Miscellaneous Symbols (U+2600–U+26FF)
1

Complete HTML Example

A simple example showing White Flag (⚐) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #flag:after{
   content: "\2690";
  }
 </style>
</head>
<body>
<p>White Flag (hex): &#x2690;</p>
<p>White Flag (decimal): &#9872;</p>
<p id="flag">White Flag (CSS): </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

U+2690 is supported in modern browsers when the font includes Miscellaneous Symbols glyphs:

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

👀 Live Preview

See White Flag (⚐) in context:

Large glyph
Surrender UI⚐ Surrender
Flag pair⚐ ⚑
Not the same as🏳 (U+1F3F3, waving white flag emoji)
Numeric refs&#x2690; &#9872; \2690

🧠 How It Works

1

Hexadecimal Code

&#x2690; uses the Unicode hexadecimal value 2690 to display the character. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9872; uses the decimal Unicode value 9872 to display the same character. A common method for symbol characters in HTML.

HTML markup
3

CSS Entity

\2690 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+2690 is the white flag in Miscellaneous Symbols. Not the same as 🏳 (waving white flag emoji) or ⚑ (black flag).

Use Cases

White Flag (⚐) is commonly used in:

🎮 Game Interfaces

Surrender buttons, truce states, and board-game indicators.

🏳 Surrender Indicators

Ceasefire, truce, and give-up actions in apps and content.

🌐 Symbolic Content

Military-themed pages, historical content, and flag symbolism.

💬 Messaging UI

Chat apps, notifications, and status indicators with flag imagery.

📚 Educational Content

History lessons and cultural content about flags and symbols.

🎨 Creative Projects

Graphic design, artistic content, and creative portfolios.

♿ Accessibility

Pair ⚐ with visible text or aria-label; do not rely on the glyph alone.

💡 Best Practices

Do

  • Use ⚐ for a simple outline flag; use 🏳 for the colorful waving emoji variant
  • Pair the flag glyph with accessible text like “Surrender” or aria-label
  • Pick one numeric style (hex or decimal) per project for consistency
  • Use fonts that support Miscellaneous Symbols characters
  • Test rendering across browsers and devices

Don’t

  • Confuse ⚐ (white flag symbol) with 🏳 (waving white flag emoji)
  • Use the flag glyph as the only cue for critical surrender or truce actions
  • Mix entity styles randomly in one file
  • Use CSS escape \2690 inside HTML markup
  • Expect a named HTML entity—none exists for ⚐

Key Takeaways

1

Type ⚐ directly, or use hex/decimal references

&#x2690; &#9872;
2

For CSS stylesheets, use the escape in the content property

\2690
3

Unicode U+2690 — WHITE FLAG (Miscellaneous Symbols)

4

U+2690/U+2691 are white/black flag pairs in Miscellaneous Symbols

❓ Frequently Asked Questions

Use &#x2690; (hex), &#9872; (decimal), or \2690 in CSS content. There is no named HTML entity. In UTF-8 you can also type ⚐ directly.
U+2690 (WHITE FLAG). Miscellaneous Symbols block U+2600–U+26FF. Hex 2690, decimal 9872.
For game interfaces, surrender indicators, truce or ceasefire content, military-themed pages, messaging UI, and symbolic flag imagery.
HTML entities (&#9872; or &#x2690;) go directly in markup. The CSS escape \2690 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 &#9872; or &#x2690; in HTML, or \2690 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