HTML Entity for Fraction 7 By 8 (⅞)

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

What You'll Learn

How to display the Fraction 7 By 8 symbol (⅞) in HTML using named, hexadecimal, decimal, and CSS escape methods. This character is U+215E (VULGAR FRACTION SEVEN EIGHTHS) in the Number Forms block (U+2150–U+218F)—a vulgar fraction representing 7⁄8 (seven eighths).

Render it with the named entity ⅞, ⅞, ⅞, or CSS escape \215E. Do not confuse ⅞ with five eighths (⅝, U+215D, ⅝), three eighths (⅜, U+215C, ⅜), or plain text 7/8.

⚡ Quick Reference — Fraction 7 By 8

Unicode U+215E

Number Forms

Hex Code ⅞

Hexadecimal reference

HTML Code ⅞

Decimal reference

Named Entity ⅞

Seven eighths (most readable)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+215E
Hex code       ⅞
HTML code      ⅞
Named entity   ⅞
CSS code       \215E
Meaning        Vulgar fraction seven eighths (7/8)
Related        U+215D = Five eighths (⅝); U+215B = One eighth (⅛)
1

Complete HTML Example

This example demonstrates the Fraction 7 By 8 symbol (⅞) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\215E";
  }
 </style>
</head>
<body>
<p>Fraction 7 By 8 using Hexadecimal: &#x215E;</p>
<p>Fraction 7 By 8 using HTML Code: &#8542;</p>
<p>Fraction 7 By 8 using HTML Entity: &frac78;</p>
<p id="point">Fraction 7 By 8 using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Fraction 7 By 8 (⅞) is widely supported in modern browsers with a suitable font:

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

👀 Live Preview

See the vulgar fraction seven eighths (⅞) in recipes, math, and compared with related glyphs:

Recipe ⅞ cup flour   ⅞ tsp vanilla
Math 8 × ⅞ = 7   ⅞ = 87.5%
Large glyph
Vulgar fractions ⅝ five-eighths   ⅞ seven-eighths   ⅛ eighth
Entity refs &frac78; &#x215E; &#8542; \215E

🧠 How It Works

1

Named Entity

&frac78; is the HTML named entity for seven eighths—often preferred in readable recipe and math markup.

HTML markup
2

Hexadecimal Code

&#x215E; uses the Unicode hexadecimal value 215E. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

\215E is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce: . Unicode U+215E in Number Forms. For five eighths, see Fraction 5 By 8 (⅝).

Use Cases

The Fraction 7 By 8 symbol (⅞) is commonly used in:

🍳 Recipes

Cooking sites and measurements (e.g. ⅞ cup, ⅞ teaspoon).

∑ Math

Equations, fractions, and math content using seven eighths.

📚 Education

Textbooks, tutorials, and lessons on fractions and ratios.

📊 Data

Statistics, scores, and displays showing seven-eighths or proportional shares.

📄 Documents

Legal, academic, or technical documents with vulgar fractions.

🌐 Symbol guides

HTML entity lists, Unicode charts, and character references.

💡 Best Practices

Do

  • Use &frac78; for readable HTML in recipes and math
  • Pair with units (e.g. ⅞ cup) for clear measurements
  • Use math-friendly fonts (Cambria Math, STIX Two Math) for clear fractions
  • Add aria-label (e.g. “seven eighths”) for accessibility
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ⅞ (seven eighths) with ⅝ (five eighths, U+215D)
  • Confuse ⅞ (7⁄8) with ⅜ (three eighths, U+215C)
  • Put CSS escape \215E in HTML text nodes
  • Mix entity styles randomly in one file
  • Use 7/8 when typographic ⅞ is required for consistency

Key Takeaways

1

Three HTML references plus CSS all render ⅞

&#x215E; &#8542; &frac78;
2

For CSS stylesheets, use the escape in the content property

\215E
3

Unicode U+215E — vulgar fraction seven eighths

4

&frac78; is the standard named entity

5

Next: Fraction Slash (continues the sequence)

❓ Frequently Asked Questions

Use &frac78; (named), &#x215E; (hex), &#8542; (decimal), or \215E in CSS content. All produce ⅞.
U+215E (VULGAR FRACTION SEVEN EIGHTHS). Number Forms block (U+2150–U+218F). Hex 215E, decimal 8542. Represents the vulgar fraction seven eighths (⅞).
In mathematical notation and fractions, recipes and measurements, educational content, data display, and any content that requires the seven-eighths (⅞) symbol in typographic form.
Yes. &frac78; is the named HTML entity for U+215E (⅞). You can also use &#8542; (decimal) or &#x215E; (hexadecimal). All render the same symbol.
HTML entities (&#8542;, &#x215E;, or &frac78;) go directly in markup. The CSS escape \215E 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, symbols, 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