HTML Entity for Subscript Eight (₈)

What You'll Learn
How to display the subscript eight (₈) in HTML using hex, decimal, and CSS entity methods. This character lives in the Superscripts and Subscripts Unicode block and is commonly used for chemical formulas, mathematical expressions, molecular notation, and technical content.
₈ has no named HTML entity, so you’ll use numeric references (₈ or ₈) or a CSS escape (\2088 in content).
⚡ Quick Reference — ₈ Entity
U+2088Superscripts & Subscripts block
₈Hexadecimal reference
₈Decimal reference
\2088Use in CSS content
Name Value
──────────── ──────────
Unicode U+2088
Hex code ₈
HTML code ₈
Named entity (none)
CSS code \2088Complete HTML Example
This example demonstrates ₈ using hexadecimal code, decimal HTML code, and a CSS content escape on a pseudo-element:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2088";
}
</style>
</head>
<body>
<p>Subscript Eight using Hexa Decimal: ₈</p>
<p>Subscript Eight using HTML Code: ₈</p>
<p id="point">Subscript Eight using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The character ₈ (U+2088) is supported in all modern browsers. Rendering depends on font support for the Superscripts and Subscripts block, so include a sensible fallback font stack:
👀 Live Preview
See ₈ rendered in a few practical contexts:
<sub> (e.g., H2O).🧠 How It Works
Hexadecimal Code
₈ references Unicode 2088 in hexadecimal to produce the glyph ₈ in HTML.
Decimal HTML Code
₈ uses the decimal code point value 8328 to render the same character.
CSS Entity (Escape)
\2088 is used in CSS (often in content) to generate ₈ in pseudo-elements like ::before and ::after.
Same visual result
All methods render ₈. Unicode is U+2088 (Superscripts and Subscripts). There is no named HTML entity for this character.
Use Cases
The subscript eight (₈) commonly appears in the following scenarios:
Molecular formulas and carbon counts (e.g., C₈ in chain or ring notation).
Indices and sequences like x₈, a₈ in notation.
Compact subscript markers in text-heavy content.
Base notation like 10₈ for base-8 (octal) examples.
Textbooks and tutorials with simple subscripts.
Use the glyph when you need a single subscript digit.
💡 Best Practices
Do
- Use
<sub>when the subscript is a word or phrase - Use numeric references (
₈/₈) for portability - Keep formula formatting consistent across the page
- Verify font support for Superscripts/Subscripts when important
- Consider MathML/MathJax for complex equations
Don’t
- Mix Unicode subscripts with random
<sub>usage without reason - Assume every font renders ₈ at the same size and position
- Use the CSS escape inside HTML content
- Let line-height collapse around formulas (adjust if needed)
- Use ₈ where a normal “8” is intended
Key Takeaways
Use numeric references in HTML
₈ ₈For CSS, use the escape in the content property
\2088Unicode U+2088 is in Superscripts/Subscripts
Useful for formulas and indices like C₈ and x₈
There is no named HTML entity for ₈
❓ Frequently Asked Questions
₈ (hex) or ₈ (decimal) in HTML. In CSS, use \2088 in the content property. All render ₈.U+2088 (hex 2088, decimal 8328). It’s part of the Superscripts and Subscripts Unicode block.₈ or ₈) are used directly in markup. The CSS escape \2088 is used in stylesheets (often in content on pseudo-elements). Same glyph, different layer.₈ or ₈ instead of a named entity.Explore More HTML Entities!
Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, and more.
8 people found this page helpful
