HTML Entity for Farsi Symbol (☫)

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

What You'll Learn

How to display the Farsi Symbol (☫) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+262B (FARSI SYMBOL) in the Miscellaneous Symbols block (U+2600–U+26FF)—used in Persian/Farsi cultural and religious context on websites, multilingual content, and culturally relevant design.

Render it with ☫, ☫, or CSS escape \262B. There is no named HTML entity. Do not confuse ☫ with the star and crescent (☪, U+262A) or the Arabic letter mark.

⚡ Quick Reference — Farsi Symbol

Unicode U+262B

Miscellaneous Symbols

Hex Code ☫

Hexadecimal reference

HTML Code ☫

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+262B
Hex code       ☫
HTML code      ☫
Named entity   (none)
CSS code       \262B
Meaning        Farsi / Persian cultural symbol
Related        U+262A = Star and crescent (☪); U+262C = Adi shakti (☬)
1

Complete HTML Example

This example demonstrates the Farsi Symbol (☫) using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity for this symbol:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\262B";
  }
 </style>
</head>
<body>
<p>Farsi Symbol using Hexadecimal: &#x262B;</p>
<p>Farsi Symbol using HTML Code: &#9771;</p>
<p id="point">Farsi Symbol using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Farsi Symbol entity is universally supported in modern browsers when a font with symbol coverage is available:

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

👀 Live Preview

See the Farsi symbol (☫) in cultural context and compared with the star and crescent (☪):

Cultural label ☫ Persian heritage
Large glyph
vs star & crescent ☫ (Farsi)   vs   ☪ (star and crescent)
Numeric refs &#x262B; &#9771;
No named entity Use hex or decimal only

🧠 How It Works

1

Hexadecimal Code

&#x262B; uses the Unicode hexadecimal value 262B to display the Farsi Symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9771; uses the decimal Unicode value 9771 to display the same character.

HTML markup
3

CSS Entity

\262B 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+262B in the Miscellaneous Symbols block (U+2600–U+26FF). No named HTML entity—use numeric codes in markup. Serve HTML as UTF-8.

Use Cases

The Farsi Symbol (☫) commonly appears in:

🌐 Persian websites

Display on Persian-language sites, news portals, and cultural pages.

🗣 Multilingual content

Use in pages that include Persian/Farsi alongside other languages.

🕌 Cultural sites

Include in cultural, religious, or community websites where the symbol is meaningful.

📚 Education

Language-learning apps, textbooks, and content about Persian culture.

📄 Official documents

Ceremonial or formal documents that use this symbol.

🔤 i18n apps

Support Persian/Farsi locale and cultural symbols in internationalized applications.

💡 Best Practices

Do

  • Use &#x262B; or &#9771; for readable symbol markup
  • Add aria-label (e.g. “Farsi symbol”) for accessibility
  • Use dir="rtl" and UTF-8 when pairing with Persian/Farsi text
  • Use the symbol in appropriate cultural context with respect for its meaning
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ☫ (Farsi symbol) with ☪ (star and crescent)
  • Expect a named entity—none exists for U+262B
  • Put CSS escape \262B in HTML text nodes
  • Assume every font renders ☫ clearly at small sizes
  • Mix entity styles randomly in one file

Key Takeaways

1

Two HTML numeric references plus CSS render ☫

&#x262B; &#9771;
2

For CSS stylesheets, use the escape in the content property

\262B
3

Unicode U+262B — FARSI SYMBOL

4

Part of the Miscellaneous Symbols block (U+2600–U+26FF)

5

Three methods, no named HTML entity

❓ Frequently Asked Questions

Use &#x262B; (hex), &#9771; (decimal), or \262B in CSS content. There is no named entity.
U+262B (FARSI SYMBOL). Miscellaneous Symbols block (U+2600–U+26FF). Hex 262B, decimal 9771. Used in Persian and cultural context.
On Persian/Farsi websites, multilingual content, cultural and religious sites, educational resources, official or ceremonial documents, and any content that requires this cultural symbol.
Named entities cover a subset of common characters. Miscellaneous Symbols like U+262B have no named entity—use &#x262B; or &#9771; in markup, or \262B in CSS.
HTML references (&#9771; or &#x262B;) go in markup. The CSS escape \262B is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.

Explore More HTML Entities!

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