HTML Entity for Yuan Character China (元)

What You'll Learn
How to display the Yuan character (元) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+5143 (CJK UNIFIED IDEOGRAPH-5143) in the CJK Unified Ideographs block—the Simplified Chinese character for yuan (CNY) used in mainland China.
Render it with 元, 元, or CSS escape \5143. There is no named HTML entity. Do not confuse 元 with 圆 (U+5706), 圓 (U+5713, Traditional), or the yen sign (¥, U+00A5). Use lang="zh-CN" on Simplified Chinese price content when appropriate.
⚡ Quick Reference — Yuan Character China
U+5143CJK Unified Ideographs
元Hexadecimal reference
元Decimal reference
—Use numeric codes only
Name Value
──────────── ──────────
Unicode U+5143
Hex code 元
HTML code 元
Named entity (none)
CSS code \5143
Meaning Simplified Chinese “yuán” (元, currency unit)
Related U+5713 = 圓 (Traditional yuan, HK/TW)
U+5706 = 圆 (variant form)
U+00A5 = Yen sign (¥, ¥)
U+FFE5 = Fullwidth yen (¥)
Block CJK Unified Ideographs (U+4E00–U+9FFF)Complete HTML Example
A simple example showing the Yuan character (元) using hexadecimal code, decimal HTML code, and a CSS content escape:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
#price:after{
content: "\5143";
}
</style>
</head>
<body>
<p>Yuan China (hex): 元</p>
<p>Yuan China (decimal): 元</p>
<p id="price">Price: 100 </p>
</body>
</html>🌐 Browser Support
U+5143 is widely supported when the page uses UTF-8 and a font with CJK glyphs:
👀 Live Preview
See 元 in a mainland China price context and beside related yuan forms:
🧠 How It Works
Hexadecimal Code
元 uses the Unicode hexadecimal value 5143 to display the Yuan character. The x prefix indicates hexadecimal format.
Decimal HTML Code
元 uses the decimal Unicode value 20803 to display the same character.
CSS Entity
\5143 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All three methods produce the glyph: 元. Unicode U+5143 is the Simplified Chinese yuan character. For Traditional Chinese, see Yuan Character Hong Kong Taiwan (圓, U+5713).
Use Cases
The Yuan character (元) is commonly used in:
Display prices for mainland China audiences (e.g. 100元).
Invoices, reports, and banking in Simplified Chinese.
Product listings and checkout for mainland China markets.
Balances, transactions, and currency labels in zh-CN.
Simplified Chinese language and currency terminology.
Multi-language sites with lang="zh-CN" support.
Contracts, receipts, and official documents using 元 for CNY.
💡 Best Practices
Do
- Use
lang="zh-CN"and UTF-8 (<meta charset="utf-8">) for Simplified Chinese - Choose fonts that include CJK glyphs (e.g. Noto Sans SC, Microsoft YaHei)
- Use 元 for mainland China; use 圓 for Traditional Chinese (HK/TW)
- Pick one numeric style (hex or decimal) per project for consistency
- Pair 元 with proper number formatting (e.g. 100元)
Don’t
- Confuse 元 (Simplified 元) with 圓 (Traditional 圓) or ¥ (yen sign)
- Put CSS escape
\5143in HTML text nodes - Assume every font renders Simplified Chinese clearly without testing
- Mix entity styles randomly in one file
- Expect a named HTML entity for U+5143—use numeric references instead
Key Takeaways
Three ways to render 元 in HTML and CSS
元 元For CSS stylesheets, use the escape in the content property
\5143Unicode U+5143 — Simplified Chinese yuan (元)
Mainland China character; 圓 is the Traditional form for HK/TW
Previous: Yin Yang (☯) Next: Yuan HK/TW (圓)
❓ Frequently Asked Questions
元 (hex), 元 (decimal), or \5143 in CSS content. There is no named HTML entity. In UTF-8 you can also type 元 directly.U+5143 (CJK UNIFIED IDEOGRAPH-5143). CJK Unified Ideographs block. Hex 5143, decimal 20803. The Simplified Chinese character for yuan used in mainland China.元 or 元) go directly in markup. The CSS escape \5143 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.元 or 元 in HTML, or \5143 in CSS.Explore More HTML Entities!
Discover 1500+ HTML character references — CJK characters, currency symbols, and more.
8 people found this page helpful
