HTML Entity for Fraction 2 By 5 (⅖)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2156

What Is Fraction 2 By 5?

Fraction 2 by 5 (⅖) is the Unicode character at U+2156 in Number Forms. Official name: VULGAR FRACTION TWO FIFTHS. It is one precomposed fraction glyph — not the three characters 2/5.

Remember
Character     ⅖
Unicode       U+2156
Named entity  ⅖
Hex entity    ⅖
Decimal       ⅖
CSS escape    \2156
Meaning       vulgar fraction two fifths (2/5)
Not the same  2/5 (three chars) · ⅕ (1/5) · ⅔ (2/3)

Prefer ⅖ in HTML for readable markup. You can also use ⅖, ⅖, or type ⅖ in a UTF-8 document.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity⅖HTML markup (preferred)
Hex entity⅖HTML markup
Decimal entity⅖HTML markup
Direct character⅖HTML text (UTF-8)
CSS escape\2156Stylesheet content

When to Use Which

SituationUse
Precomposed two fifths⅖ or type ⅖
Plain ASCII / maximum compatibilityType 2/5 as three characters
One fifthFraction 1 by 5 — ⅕ (⅕)
Two thirdsFraction 2 by 3 — ⅔ (⅔)
Generated text via ::before / ::aftercontent: "\2156"

Live Preview

Fraction alone, in a sample label, and next to related fractions.

Glyph ⅖
Large glyph ⅖
Sample Share: ⅖ of total
Compared ⅖   2/5   ⅕   ⅔
With entities Named: ⅖ | Hex: ⅖ | Decimal: ⅖

Complete HTML Example

One page that shows two fifths with named, hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to display ⅖ in HTML and CSS.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Fraction 2 By 5 (U+2156) in HTML</title>
  <style>
    #point::after {
      content: "\2156";
    }
  </style>
</head>
<body>
  <p>Built with Named: &frac25;</p>
  <p>Built with Hex: &#x2156;</p>
  <p>Built with Decimal: &#8534;</p>
  <p id="point">Built with CSS: </p>
  <p>Typed: ⅖</p>
  <p>Share: <span aria-label="two fifths">&frac25;</span> of total</p>
  <p>Math: 5 &times; &frac25; = 2</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &frac25; is the HTML5 name for U+2156 → ⅖.

2. Hex: &#x2156; inserts the same code point by hexadecimal value.

3. Decimal: same code point as 8534 → &#8534;. Same visual as named/hex.

4. CSS: use \2156 in content (not an HTML entity). #point::after appends ⅖.

5. Typed: paste ⅖ in a UTF-8 document when you need the two-fifths glyph as one character.

Pitfalls & Tips

Common mistakes when working with fraction 2 by 5.

Name

Prefer &frac25;

The named entity is clear and standard. Avoid inventing names like &twofifths;.

2/5

Not three characters

Typing 2/5 creates three code points. ⅖ is one Number Forms character.

⅕

Not one fifth

One fifth is ⅕ (U+2155, &frac15;). Use it when you mean 1/5, not 2/5.

Font

Font coverage

Some fonts omit Number Forms fractions. If ⅖ is missing, fall back to 2/5 or a font with Number Forms coverage.

CSS vs HTML

Do not mix escapes

\2156 belongs in CSS strings. &frac25; / &#x2156; / &#8534; belong in HTML.

a11y

Add accessible text

Screen readers may not announce ⅖ clearly. Prefer aria-label="two fifths" or nearby prose when the fraction carries meaning.

Semicolon

End references

Always finish entities with ; — write &frac25;, not &frac25.

Browser Support

Fraction 2 by 5 (U+2156) and its entity forms (&frac25;, &#x2156;, &#8534;, CSS \\2156) are supported in all mainstream browsers. Visible glyphs depend on Number Forms font coverage.

✓ Universal support

Fraction 2 By 5 (&#x2156;)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2156 Full support

Bottom line: Prefer &frac25; in HTML. Use &#x2156; / &#8534; when numeric form is required, and \\2156 only inside CSS content.

Key Takeaways

  • Unicode: fraction 2 by 5 is U+2156 (decimal 8534) — glyph ⅖.
  • HTML: prefer &frac25; — also &#x2156; / &#8534; / type ⅖.
  • CSS: use \2156 inside content for generated text.
  • Meaning: ⅖ ≠ 2/5 (three chars) ≠ ⅕.

One line: U+2156 → &frac25; / &#x2156; / &#8534; / CSS \2156.

Frequently Asked Questions

Use &frac25; (named), &#x2156; (hex), &#8534; (decimal), type ⅖ directly in UTF-8, or the CSS escape \2156 in content.
U+2156 (VULGAR FRACTION TWO FIFTHS). Hex 2156, decimal 8534. It belongs to the Number Forms block (U+2150–U+218F).
Yes. HTML5 defines &frac25; for U+2156. Prefer it for readable markup.
Use it in math, education, and everyday text when you want the single two-fifths glyph. Prefer typing 2/5 as three characters when plain ASCII is required.
HTML entities (&frac25;, &#8534;, or &#x2156;) go in markup. The CSS escape \2156 goes in stylesheet strings (usually content on ::before/::after).
No. U+2156 is one character (⅖). Typing 2/5 creates three characters. One fifth is U+2155 (⅕).

Did you know?

Fraction 2 by 5 is Unicode U+2156 (decimal 8534) — glyph ⅖ (VULGAR FRACTION TWO FIFTHS) in Number Forms. HTML5 named entity: &frac25;. Prefer the named form when you want readable markup. It is one precomposed character, not 2/5 as three characters. Related fractions include one fifth (⅕) and two thirds (⅔).

Next: Fraction 3 By 4

Learn the HTML entity for fraction 3 by 4 (U+00BE).

Fraction 3 by 4 tutorial →

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