HTML Entity for Fraction 2 By 5 (⅖)

What You'll Learn
How to display the Fraction 2 By 5 symbol (⅖) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2156 (VULGAR FRACTION TWO FIFTHS) in the Number Forms block (U+2150–U+218F)—a vulgar fraction representing 2⁄5 (two fifths).
Render it with ⅖, ⅖, or CSS escape \2156. There is no named HTML entity. Do not confuse ⅖ with one fifth (⅕, U+2155, ⅕), three fifths (⅗, U+2157), or plain text 2/5.
⚡ Quick Reference — Fraction 2 By 5
U+2156Number Forms
⅖Hexadecimal reference
⅖Decimal reference
—Use numeric codes only
Name Value
──────────── ──────────
Unicode U+2156
Hex code ⅖
HTML code ⅖
Named entity (none)
CSS code \2156
Meaning Vulgar fraction two fifths (2/5)
Related U+2155 = One fifth (⅕); U+2157 = Three fifths (⅗)Complete HTML Example
This example demonstrates the Fraction 2 By 5 (⅖) using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2156";
}
</style>
</head>
<body>
<p>Fraction 2 By 5 using Hexadecimal: ⅖</p>
<p>Fraction 2 By 5 using HTML Code: ⅖</p>
<p id="point">Fraction 2 By 5 using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The Fraction 2 By 5 is widely supported in modern browsers with a suitable font:
👀 Live Preview
See the vulgar fraction two fifths (⅖) in math and compared with related fraction glyphs:
🧠 How It Works
Hexadecimal Code
⅖ uses the Unicode hexadecimal value 2156 to display the Fraction 2 By 5. The x prefix indicates hexadecimal format.
Decimal HTML Code
⅖ uses the decimal Unicode value 8534 to display the same character.
CSS Entity
\2156 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+2156 is in Number Forms. No named HTML entity—use numeric codes in markup.
Use Cases
The Fraction 2 By 5 (⅖) is commonly used in:
Equations, fractions, and math content that use the 2⁄5 (two fifths) value.
Textbooks, tutorials, and learning materials for fractions and number theory.
Statistics, percentages, and data expressed as fifths (⅖).
Content that uses vulgar fractions for precise typographic display.
Calculators and web apps that display fraction results.
Unicode tables and Number Forms glossaries.
💡 Best Practices
Do
- Add
aria-label="two fifths"when the symbol carries meaning - Use math-friendly fonts (Cambria Math, STIX Two Math) for clear fractions
- Use the CSS escape in
::before/::afterfor repeated markers - Keep hex or decimal encoding consistent within a project
- Serve pages with UTF-8 (
<meta charset="utf-8">)
Don’t
- Confuse ⅖ (two fifths) with ⅕ (one fifth, U+2155)
- Confuse ⅖ (2⁄5) with ⅗ (three fifths, U+2157)
- Expect a named entity—none exists for U+2156
- Put CSS escape
\2156in HTML text nodes - Use the glyph without context when plain
40%or2/5is clearer for readers - Skip cross-browser checks for rare punctuation glyphs
Key Takeaways
Two HTML numeric references plus CSS render ⅖
⅖ ⅖For CSS stylesheets, use the escape in the content property
\2156Unicode U+2156 — VULGAR FRACTION TWO FIFTHS
Number Forms block (U+2150–U+218F)
Three methods, no named HTML entity
❓ Frequently Asked Questions
⅖ (hex), ⅖ (decimal), or \2156 in CSS content. There is no named entity.U+2156 (VULGAR FRACTION TWO FIFTHS). Number Forms block (U+2150–U+218F). Hex 2156, decimal 8534. Represents two fifths (2⁄5).⅖ or ⅖) go in markup. The CSS escape \2156 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 — fractions, math symbols, and more.
8 people found this page helpful
