HTML Entity for Superscript Seven (⁷)

What You'll Learn
How to display the superscript seven (⁷) 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, seventh powers, scientific notation, and footnote markers.
⁷ has no named HTML entity (unlike ¹ ² ³), so you’ll use numeric references (⁷ or ⁷) or a CSS escape (\2077 in content).
⚡ Quick Reference — ⁷ Entity
U+2077Superscripts & Subscripts block
⁷Hexadecimal reference
⁷Decimal reference
\2077Use in CSS content
Name Value
──────────── ──────────
Unicode U+2077
Hex code ⁷
HTML code ⁷
Named entity (none)
CSS code \2077Complete 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: "\2077";
}
</style>
</head>
<body>
<p>Superscript Seven using Hexa Decimal: ⁷</p>
<p>Superscript Seven using HTML Code: ⁷</p>
<p id="point">Superscript Seven using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The character ⁷ (U+2077) 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 2077 in hexadecimal to produce the glyph ⁷ in HTML.
Decimal HTML Code
⁷ uses the decimal code point value 8311 to render the same character.
CSS Entity (Escape)
\2077 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+2077 (Superscripts and Subscripts). There is no named HTML entity for this character.
Use Cases
The superscript seven (⁷) commonly appears in the following scenarios:
Seventh 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 seventh 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
&sup7;(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 “7” is intended
Key Takeaways
Use numeric references in HTML
⁷ ⁷For CSS, use the escape in the content property
\2077Unicode U+2077 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 \2077 in the content property. All render ⁷.U+2077 (hex 2077, decimal 8311). It’s part of the Superscripts and Subscripts Unicode block.⁷ or ⁷) are used directly in markup. The CSS escape \2077 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
