HTML Entity for Black Flag (⚑)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2691

What Is Black Flag?

Black flag (⚑) is Unicode U+2691 in the Miscellaneous Symbols block. It is a filled flag marker — common for maps, checkpoints, and wayfinding UI. HTML has no standard named entity — use numeric or CSS forms (or type the character in UTF-8).

Remember
Character     ⚑
Unicode       U+2691
Hex entity    ⚑
Decimal       ⚑
Named entity  (none)
CSS escape    \2691
Not the same  ⚐ U+2690 (white flag)

All of these produce the same glyph: ⚑. Prefer typing ⚑ in UTF-8 when you can; use ⚑ / ⚑ or CSS for generated content.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character⚑HTML text (UTF-8)
Named entityNone—
Hex entity⚑HTML markup
Decimal entity⚑HTML markup
CSS escape\2691Stylesheet content

When to Use Which

SituationUse
Filled flag marker⚑ or type ⚑
Outline / white flag⚐ (U+2690)
Need an entity in HTML source⚑ or ⚑
Icon via CSScontent: "\2691" on ::before

Live Preview

Black flag in common study contexts.

Inline marker Checkpoint ⚑
Large glyph ⚑
vs. white flag ⚑ black  ·  ⚐ white
Accessible label flag Goal
With entities Hex: ⚑ | Decimal: ⚑

Complete HTML Example

One page that shows ⚑ with hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + CSS + Typed

Four ways to produce ⚑ in a single document (no named entity).

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Black Flag (⚑) in HTML</title>
  <style>
    #point::after {
      content: "\2691";
    }
  </style>
</head>
<body>
  <p>Black flag using Hex Code: &#x2691;</p>
  <p>Black flag using HTML Code: &#9873;</p>
  <p id="point">Black flag using CSS Entity: </p>
  <p>Typed directly: ⚑</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2691 → &#x2691; in HTML. The browser turns it into ⚑.

2. Decimal: same code point as 9873 → &#9873;. Same result as hex.

3. CSS: use \2691 in content (not an HTML entity). #point::after appends that ⚑ after the paragraph text.

4. Typed ⚑: fine in UTF-8 source. All four lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with black flag (⚑).

Named

No &name; form

U+2691 has no standard named entity — use &#x2691; or &#9873;.

⚐

Not white flag

⚑ is filled. For the outline form use ⚐ (U+2690).

a11y

Say “flag” or “goal”

Screen readers may not announce a clear meaning. Pair the glyph with visible or visually hidden text.

Fonts

Check symbol coverage

Some UI fonts omit U+2691. Prefer fonts with solid Miscellaneous Symbols support.

CSS vs HTML

Do not mix escapes

\2691 belongs in CSS. &#x2691; / &#9873; belong in HTML.

Semicolon

End references

Always finish with ; — write &#x2691;, not &#x2691.

Browser Support

Black flag (U+2691) and its entity forms (&#x2691;, &#9873;, CSS \\2691) are supported in all mainstream browsers. Glyph quality depends on font support for Miscellaneous Symbols.

✓ Universal support

Black Flag (⚑)

Type ⚑, or encode with hex, decimal, or CSS escape — same glyph everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2691 / entities Full support

Bottom line: Prefer a typed ⚑ or &#x2691; for markers. Use decimal when generating markup, and \\2691 only inside CSS content.

Key Takeaways

  • Unicode: black flag is U+2691 (decimal 9873).
  • HTML: use &#x2691; or &#9873; (no named entity).
  • CSS: use \2691 inside content for generated icons.
  • Watch out: ⚑ ≠ ⚐ (black ≠ white flag).

One line: U+2691 → &#x2691; / &#9873; / CSS \2691.

Frequently Asked Questions

Use &#x2691; (hex), &#9873; (decimal), or the CSS escape \2691 in the content property. All render ⚑. You can also paste ⚑ directly if your file is UTF-8. There is no standard named entity.
U+2691 (hex 2691, decimal 9873). Unicode names it BLACK FLAG. It belongs to the Miscellaneous Symbols block.
No. HTML5 / WHATWG does not define a named character reference for U+2691. Prefer &#x2691;, &#9873;, or a typed ⚑ in UTF-8.
⚑ (U+2691) is the filled black flag. ⚐ (U+2690) is white flag (outline). They are different code points.
HTML entities (&#9873; or &#x2691;) go in markup. The CSS escape \2691 is used in stylesheets (usually in the content property of ::before/::after). Both render ⚑.
Use ⚑ for map markers, checkpoints, wayfinding, and gaming UI. Pair the glyph with text like Flag or Goal when accessibility matters.

Did you know?

Black flag is Unicode U+2691 (decimal 9873) in the Miscellaneous Symbols block — official name BLACK FLAG. There is no standard named HTML entity. It is not white flag (U+2690 ⚐).

Next: Black Florette

Learn the HTML entity for the black florette (✿).

Next tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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