HTML Entity for Subscript Five (₅)

What You'll Learn
How to display the subscript five (₅) 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 (\2085 in content).
⚡ Quick Reference — ₅ Entity
U+2085Superscripts & Subscripts block
₅Hexadecimal reference
₅Decimal reference
\2085Use in CSS content
Name Value
──────────── ──────────
Unicode U+2085
Hex code ₅
HTML code ₅
Named entity (none)
CSS code \2085Complete 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: "\2085";
}
</style>
</head>
<body>
<p>Subscript Five using Hexa Decimal: ₅</p>
<p>Subscript Five using HTML Code: ₅</p>
<p id="point">Subscript Five using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The character ₅ (U+2085) 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 2085 in hexadecimal to produce the glyph ₅ in HTML.
Decimal HTML Code
₅ uses the decimal code point value 8325 to render the same character.
CSS Entity (Escape)
\2085 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+2085 (Superscripts and Subscripts). There is no named HTML entity for this character.
Use Cases
The subscript five (₅) commonly appears in the following scenarios:
Molecular formulas like P₅O₁₀, N₅, or other atom counts.
Indices and sequences like x₅, a₅ in notation.
Compact subscript markers in text-heavy content.
Base notation like 10₅ for base-5 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 “5” is intended
Key Takeaways
Use numeric references in HTML
₅ ₅For CSS, use the escape in the content property
\2085Unicode U+2085 is in Superscripts/Subscripts
Useful for formulas and indices like P₅ and x₅
There is no named HTML entity for ₅
❓ Frequently Asked Questions
₅ (hex) or ₅ (decimal) in HTML. In CSS, use \2085 in the content property. All render ₅.U+2085 (hex 2085, decimal 8325). It’s part of the Superscripts and Subscripts Unicode block.₅ or ₅) are used directly in markup. The CSS escape \2085 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
