HTML Entity for Superscript Four (⁴)

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