HTML Entity - Yin Yang
Yin Yang is a miscellaneous symbols including stars, music notes, warnings, and cultural icons. This HTML entity enables web developers to display this character reliably across all browsers without encoding issues.
U+262F
\262F
Use this HTML entity in ratings, alerts, music notation, and decorative UI elements. For example, ★ for star ratings, ♫ for music.
About Yin Yang
The yin yang symbol (☯) depicts the Chinese philosophical concept of yin and yang: two complementary forces that are opposite yet interconnected, each containing the seed of the other. Its code point is U+262F, and because it has no widely supported named entity, use the numeric forms ☯ or ☯ in HTML.
The image shows a circle divided by a curved line into a light half and a dark half, with a small dot of the opposite colour in each side. It represents balance, change and the idea that opposites give rise to one another. It is central to Taoist thought and appears widely in Chinese-influenced culture, traditional medicine and modern wellness branding.
In Unicode it is grouped with the Miscellaneous Symbols block and is often referred to by its code name, YIN YANG. The emoji presentation is available on many platforms, so the same character can render as a coloured emoji or as a monochrome glyph depending on the font and the presence of a variation selector.
Encoding and input: in HTML use the numeric reference, since there is no reliable named entity. You can also paste the character directly into UTF-8 text or insert it from an emoji picker. In CSS, reference it through the CSS escape for U+262F, or paste it directly in a UTF-8 stylesheet.
Accessibility and cultural sensitivity matter. Screen readers announce it by its code name, and using a spiritual symbol purely as decoration can be inappropriate. If the symbol carries meaning, label it in text; if it is decorative, hide it from assistive technology. Also confirm that the chosen font actually contains the glyph, since some fonts substitute a fallback or a tofu box.
Common Mistakes
Mistake: Using the yin-yang symbol ☯ as a purely decorative element without context
Fix: The yin-yang symbol ☯ has specific cultural and philosophical meaning. Use it respectfully in appropriate contexts.
Frequently Asked Questions
What is the Unicode code point for the yin yang symbol?
It is U+262F. In HTML use the numeric forms ☯ or ☯ because there is no reliable named entity.
Why is there no &yinyang; entity in HTML?
Not every symbol has a named HTML entity. The yin yang character is well defined in Unicode but does not have a standard named reference, so use the numeric form.
What does the yin yang symbol mean?
It represents the balance and interdependence of opposing forces, yin and yang, with each side containing a small part of the other.
Can the yin yang symbol appear as an emoji?
Yes, on many platforms it renders as a coloured emoji. Without an emoji-capable font it appears as a monochrome glyph.
Is it appropriate to use the symbol decoratively?
It is a meaningful cultural and spiritual symbol. If you use it purely as decoration, do so thoughtfully, and hide it from screen readers to avoid reading its code name aloud.
Why does the symbol sometimes show as a box?
That means the active font lacks the glyph. Provide a font that includes U+262F, or fall back to an image or an icon font.
Yin Yang
Select any code to highlight it before copying.
| Unicode | U+262F |
|---|---|
| Hex Code | ☯ |
| HTML Code | ☯ |
| HTML Entity | |
| CSS Code | \262F |
| Windows Shortcut | |
| Mac Shortcut | |