HTML Entity for Superscript Four (⁴)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+2074

What Is the Superscript Four Entity?

Superscript Four (⁴) is the Unicode character at U+2074 in the Subscripts and Superscripts block. It looks like a small raised 4 and appears in power notation such as x⁴ and 10⁴.

Remember
Character     ⁴
Unicode       U+2074
Hex entity    ⁴
Decimal       ⁴
CSS escape    \2074
Named entity  (none)

All of these produce the same glyph: ⁴. Prefer the Unicode character (or its entities) when you need that exact glyph; use <sup>4</sup> when you want semantic superscript formatting instead.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character⁴HTML text (UTF-8)
Hex entity&#x2074;HTML markup
Decimal entity&#8308;HTML markup
CSS escape\2074Stylesheet content
Named entity—Not defined in HTML5 (unlike &sup1;–&sup3;)
Semantic tag<sup>4</sup>HTML (formatting, not the ⁴ glyph)

When to use which

SituationUse
Need the Unicode glyph ⁴Type ⁴, or &#x2074; / &#8308;
Generated text via ::before / ::aftercontent: "\2074"
Semantic superscript for any text<sup>4</sup>
Plain digit four (not superscript)Type 4 (U+0034)
Looking for &sup4;Does not exist — use numeric form

Live Preview

Superscript Four rendered in common writing contexts.

Inline text Fourth power: x⁴ = x · x · x · x
Large glyph ⁴
In a power 10⁴ = 10,000   2⁴ = 16
Monospace x⁴ → fourth power
With entities Hex: ⁴ | Decimal: ⁴
Semantic <sup> x4 (tag styles digit 4)

Complete HTML Example

One page that shows Superscript Four with the hex entity, decimal entity, CSS escape, and the semantic <sup> option. Use View Output or open the live editor.

Hex + Decimal + CSS + <sup>

Four ways to show a raised four in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Superscript Four (⁴) in HTML</title>
  <style>
    #point::after {
      content: "\2074";
    }
  </style>
</head>
<body>
  <p>Superscript Four using Hex Code: &#x2074;</p>
  <p>Superscript Four using HTML Code: &#8308;</p>
  <p id="point">Superscript Four using CSS Entity: </p>
  <p>Semantic alternative: x<sup>4</sup></p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2074 → &#x2074; in HTML. The browser turns it into ⁴.

2. Decimal: same code point as 8308 → &#8308;. Same result as hex.

3. CSS: use \2074 in content (not an HTML entity). #point::after appends that ⁴ after the paragraph text.

4. Semantic <sup>: x<sup>4</sup> styles digit four as a superscript. Prefer this when you need meaning, not a specific Unicode glyph.

Pitfalls & Tips

Common mistakes when working with Superscript Four entities.

Named?

No &sup4;

HTML5 has &sup1;, &sup2;, and &sup3; only. For ⁴, use numeric forms.

CSS vs HTML

Do not mix escapes

\2074 belongs in CSS. &#x2074; / &#8308; belong in HTML.

⁴ vs 4 vs ₄

Different characters

⁴ is U+2074; digit 4 is U+0034; subscript ₄ is U+2084.

Glyph vs tag

Choose intentionally

Use the Unicode glyph for exact look; use <sup> for semantic superscript on any text.

Semicolon

End references

Always finish with ; — write &#8308;, not &#8308.

Fonts

Check the glyph

Some fonts draw ⁴ weakly. If appearance matters, test the font or prefer <sup>.

Browser Support

Superscript Four (U+2074) and its numeric entity forms (&#x2074;, &#8308;, CSS \\2074) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Superscript Four (⁴)

Encode with hex, decimal, or CSS escape — or use <sup> for semantic formatting.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2074 / entities Full support

Bottom line: Use &#x2074; or &#8308; for the Unicode glyph, \\2074 only inside CSS content, and <sup>4</sup> when you want semantic superscript.

Key Takeaways

  • Unicode: Superscript Four is U+2074 (decimal 8308).
  • HTML: use &#x2074; or &#8308; when you need an entity.
  • CSS: use \2074 inside content for generated text.
  • Alternative: use <sup>4</sup> for semantic superscript formatting.

One line: U+2074 → &#x2074; / &#8308; / CSS \2074, or semantic <sup>4</sup>.

Frequently Asked Questions

Use &#x2074; (hex), &#8308; (decimal), or the CSS escape \2074 in the content property. All render ⁴. You can also paste the character ⁴ directly when your file is UTF-8.
U+2074 (hex 2074, decimal 8308). It belongs to the Subscripts and Superscripts Unicode block.
No. HTML5 defines &sup1;, &sup2;, and &sup3;, but not &sup4;. Use numeric references like &#x2074; or &#8308;.
Use ⁴ (or its entities) when you need the exact Unicode superscript glyph. Use <sup>4</sup> when you want semantic superscript formatting for arbitrary text.
No. Digit four is U+0034. Subscript four is U+2084 (₄). Superscript Four is U+2074 (⁴) — a different character.
HTML entities (&#8308; or &#x2074;) go in markup. The CSS escape \2074 is used in stylesheets (usually in the content property of ::before/::after). Both render ⁴.

Did you know?

Superscript four is Unicode U+2074 (decimal 8308). HTML5 has no named entity for it — unlike &sup1;, &sup2;, and &sup3;. Use &#x2074; or &#8308;. It is a different character from digit four (U+0034) and from subscript four ₄ (U+2084).

Next: Digit Five (5)

Continue the entity series with the HTML reference for digit five — a different character from superscript four.

Digit 5 tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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