HTML Entity for Superscript Eight (⁸)

Beginner
⏱️ 5 min read
📚 Updated: Aug 2025
🎯 1 Code Example
Unicode U+2078

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

Unicode U+2078

Superscripts & Subscripts block

Hex Code ⁸

Hexadecimal reference

HTML Code ⁸

Decimal reference

CSS Code \2078

Use in CSS content

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2078
Hex code       ⁸
HTML code      ⁸
Named entity   (none)
CSS code       \2078
1

Complete HTML Example

This example demonstrates ⁸ using hexadecimal code, decimal HTML code, and a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2078";
  }
 </style>
</head>
<body>

<p>Superscript Eight using Hexa Decimal: &#x2078;</p>
<p>Superscript Eight using HTML Code: &#8312;</p>
<p id="point">Superscript Eight using CSS Entity: </p>

</body>
</html>
Try It Yourself

🌐 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:

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

👀 Live Preview

See ⁸ rendered in a few practical contexts:

Exponent x⁸
Eighth power 2⁸ = 256
Large glyph
Semantic note For multi-character superscripts, prefer <sup>.

🧠 How It Works

1

Hexadecimal Code

&#x2078; references Unicode 2078 in hexadecimal to produce the glyph in HTML.

HTML markup
2

Decimal HTML Code

&#8312; uses the decimal code point value 8312 to render the same character.

HTML markup
3

CSS Entity (Escape)

\2078 is used in CSS (often in content) to generate ⁸ in pseudo-elements like ::before and ::after.

CSS stylesheet
=

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:

📐 Exponents

Eighth powers like x⁸ and 2⁸ in math.

📝 Footnotes

Superscript reference markers in articles and papers.

🧪 Science

Powers and notation in physics and engineering.

📚 Education

Textbooks and tutorials explaining eighth powers.

📈 Charts

Labels and captions requiring a compact exponent.

🎨 Typography

Use the glyph when you need a single superscript digit.

💡 Best Practices

Do

  • Use numeric references (&#x2078; / &#8312;) 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

1

Use numeric references in HTML

&#x2078; &#8312;
2

For CSS, use the escape in the content property

\2078
3

Unicode U+2078 is in Superscripts/Subscripts

4

Commonly used for exponents like x⁸

5

There is no named HTML entity for ⁸

❓ Frequently Asked Questions

Use &#x2078; (hex) or &#8312; (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.
Use it for exponents (x⁸), eighth powers, mathematical formulas, footnote markers, and ordinal-style notation.
HTML numeric references (&#8312; or &#x2078;) are used directly in markup. The CSS escape \2078 is used in stylesheets (often in content on pseudo-elements). Same glyph, different layer.
Named entities exist only for ¹ ² ³. For ⁸ you must use numeric Unicode codes like &#x2078; or &#8312;.

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, 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