HTML Entity for Superscript Eight (⁸)

What You'll Learn
How to display the superscript 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 exponents, eighth powers, scientific notation, and footnote markers.
⁸ has no named HTML entity (unlike ¹ ² ³), so you’ll use numeric references (⁸ or ⁸) or a CSS escape (\2078 in content).
⚡ Quick Reference — ⁸ Entity
U+2078Superscripts & Subscripts block
⁸Hexadecimal reference
⁸Decimal reference
\2078Use in CSS content
Name Value
──────────── ──────────
Unicode U+2078
Hex code ⁸
HTML code ⁸
Named entity (none)
CSS code \2078Complete 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: "\2078";
}
</style>
</head>
<body>
<p>Superscript Eight using Hexa Decimal: ⁸</p>
<p>Superscript Eight using HTML Code: ⁸</p>
<p id="point">Superscript Eight using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The character ⁸ (U+2078) 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:
<sup>.🧠 How It Works
Hexadecimal Code
⁸ references Unicode 2078 in hexadecimal to produce the glyph ⁸ in HTML.
Decimal HTML Code
⁸ uses the decimal code point value 8312 to render the same character.
CSS Entity (Escape)
\2078 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+2078 (Superscripts and Subscripts). There is no named HTML entity for this character.
Use Cases
The superscript eight (⁸) commonly appears in the following scenarios:
Eighth powers like x⁸ and 2⁸ in math.
Superscript reference markers in articles and papers.
Powers and notation in physics and engineering.
Textbooks and tutorials explaining eighth powers.
Labels and captions requiring a compact exponent.
Use the glyph when you need a single superscript digit.
💡 Best Practices
Do
- Use numeric references (
⁸/⁸) for portability - Use
<sup>for multi-character superscripts - Keep exponent formatting consistent across content
- Add context for assistive tech when needed
- Use CSS escapes for generated content
Don’t
- Expect a named entity like
&sup8;(it doesn’t exist) - Mix Unicode superscripts with random
<sup>usage without reason - 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
\2078Unicode U+2078 is in Superscripts/Subscripts
Commonly used for exponents like x⁸
There is no named HTML entity for ⁸
❓ Frequently Asked Questions
⁸ (hex) or ⁸ (decimal) in HTML. In CSS, use \2078 in the content property. All render ⁸.U+2078 (hex 2078, decimal 8312). It’s part of the Superscripts and Subscripts Unicode block.⁸ or ⁸) are used directly in markup. The CSS escape \2078 is used in stylesheets (often in content on pseudo-elements). Same glyph, different layer.⁸ or ⁸.Explore More HTML Entities!
Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, and more.
8 people found this page helpful
