HTML Entity for Crossed Swords (⚔)

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

What You'll Learn

How to display the Crossed Swords (⚔) in HTML and CSS. This character is U+2694 (CROSSED SWORDS) in the Miscellaneous Symbols block (U+2600–U+26FF). It is often used in gaming, fantasy, medieval, and conflict-themed content—not a religious cross like Cross of Jerusalem (☩) or heraldic Cross of Lorraine (☨).

There is no named HTML entity for U+2694. Use ⚔, ⚔, or \2694 in CSS content. Do not confuse ⚔ with single-sword emoji or other weapon symbols in Unicode.

⚡ Quick Reference — Crossed Swords

Unicode U+2694

Miscellaneous Symbols (U+2600–U+26FF)

Hex Code ⚔

Hexadecimal reference

HTML Code ⚔

Decimal reference

Named Entity

None (use numeric refs)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2694
Hex code       ⚔
HTML code      ⚔
Named entity   —
CSS code       \2694
1

Complete HTML Example

This example shows U+2694 using hexadecimal and decimal character references, plus a CSS content escape. There is no named HTML entity:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2694";
  }
 </style>
</head>
<body>
<p>Crossed Swords using Hexadecimal: &#x2694;</p>
<p>Crossed Swords using HTML Code: &#9876;</p>
<p id="point">Crossed Swords using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2694 is supported in modern browsers; use a font with good Miscellaneous Symbols coverage:

Chrome 1+
Firefox 1+
Safari 3.1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 3.2+

👀 Live Preview

See the Crossed Swords (⚔) in context:

Standalone
Gaming PvP ⚔   Battle mode   Duel
Fantasy Quest ⚔   Combat skill icon
Other crosses ⚔ swords   ☨ Lorraine   ☩ Jerusalem
Monospace refs &#x2694; &#9876; \2694

🧠 How It Works

1

Hexadecimal Code

&#x2694; references code point U+2694 using hex digits 2694.

HTML markup
2

Decimal HTML Code

&#9876; is the decimal equivalent (9876) for the same character.

HTML markup
3

CSS Entity

\2694 is the CSS escape for U+2694, used in the content property of ::before or ::after.

CSS stylesheet
=

Same visual result

All three methods produce the crossed swords glyph: . Unicode U+2694 is in Miscellaneous Symbols (U+2600–U+26FF). No named HTML entity exists.

Use Cases

Crossed Swords (⚔) commonly appears in:

🎮 Gaming

Game sites, RPGs, strategy games, and fantasy themes with battle imagery.

⚔ Medieval themes

Historical docs, reenactment, and period content about combat or warfare.

⚖ Battle UI

PvP labels, duel sections, conflict warnings, and fight-related app interfaces.

🎨 Decorative design

Headers, icons, badges, and thematic web design elements.

📚 Education

Unicode tables, HTML entity guides, and symbol documentation.

🔤 Symbol references

HTML entity guides and Miscellaneous Symbols glossaries.

♿ Accessibility

Pair the symbol with meaningful alt text or context in religious or cultural content.

💡 Best Practices

Do

  • Use &#x2694; or &#9876; for the crossed swords symbol
  • Choose fonts that support Miscellaneous Symbols (U+2600–U+26FF)
  • Keep hex or decimal style consistent across the document
  • Use \2694 only inside CSS content
  • Pair with labels like “PvP” or “Battle” when meaning matters

Don’t

  • Confuse U+2694 (⚔) with Cross of Jerusalem ☩ or Cross of Lorraine ☨
  • Confuse ⚔ with unrelated weapon or cross symbols
  • Assume a named entity exists—U+2694 has none
  • Put CSS escape \2694 in HTML text nodes
  • Use the symbol without sensitivity in inappropriate contexts

Key Takeaways

1

No named entity—use numeric references

&#x2694; &#9876;
2

For CSS stylesheets, use the escape in the content property

\2694
3

U+2694 CROSSED SWORDS

4

Standalone symbol in Miscellaneous Symbols block

5

Three methods, one glyph — widely supported in modern browsers

❓ Frequently Asked Questions

Use &#x2694; (hex), &#9876; (decimal), or \2694 in CSS content. There is no named HTML entity for U+2694.
U+2694 (CROSSED SWORDS). Miscellaneous Symbols (U+2600–U+26FF). Hex 2694, decimal 9876.
In gaming and fantasy websites, medieval or historical content, conflict or battle themes, decorative design, and educational symbol references when you need the crossed swords symbol (⚔). Use numeric references since there is no named entity.
HTML numeric references (&#9876; or &#x2694;) go in markup. The CSS escape \2694 is used in stylesheets, typically in the content property of pseudo-elements. Both render ⚔.
HTML5 named entities focus on commonly used characters. U+2694 is a specialized symbol, so use &#x2694; or &#9876;. See symbol entities for copyright, crosses, and related marks.

Explore More HTML Entities!

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