HTML Entity for Superscript Seven (⁷)

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

What Is the Superscript Seven Entity?

Superscript Seven (⁷) is the Unicode character at U+2077 in the Subscripts and Superscripts block. It looks like a small raised 7 and appears in power notation such as x⁷ and 10⁷.

Remember
Character     ⁷
Unicode       U+2077
Hex entity    ⁷
Decimal       ⁷
CSS escape    \2077
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>7</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&#x2077;HTML markup
Decimal entity&#8311;HTML markup
CSS escape\2077Stylesheet content
Named entity—Not defined in HTML5 (unlike &sup1;–&sup3;)
Semantic tag<sup>7</sup>HTML (formatting, not the ⁷ glyph)

When to use which

SituationUse
Need the Unicode glyph ⁷Type ⁷, or &#x2077; / &#8311;
Generated text via ::before / ::aftercontent: "\2077"
Semantic superscript for any text<sup>7</sup>
Plain digit seven (not superscript)Type 7 (U+0037)
Looking for &sup7;Does not exist — use numeric form

Live Preview

Superscript Seven rendered in common writing contexts.

Inline text Seventh power: x⁷
Large glyph ⁷
In a power 10⁷ = 10,000,000   2⁷ = 128
Monospace x⁷ → seventh power
With entities Hex: ⁷ | Decimal: ⁷
Semantic <sup> x7 (tag styles digit 7)

Complete HTML Example

One page that shows Superscript Seven 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 seven in a single document.

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

How It Works

1. Hex: U+2077 → &#x2077; in HTML. The browser turns it into ⁷.

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

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

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

Pitfalls & Tips

Common mistakes when working with Superscript Seven entities.

Named?

No &sup7;

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

CSS vs HTML

Do not mix escapes

\2077 belongs in CSS. &#x2077; / &#8311; belong in HTML.

⁷ vs 7 vs ₇

Different characters

⁷ is U+2077; digit 7 is U+0037; subscript ₇ is U+2087.

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 &#8311;, not &#8311.

Fonts

Check the glyph

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

Browser Support

Superscript Seven (U+2077) and its numeric entity forms (&#x2077;, &#8311;, CSS \\2077) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Superscript Seven (⁷)

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+2077 / entities Full support

Bottom line: Use &#x2077; or &#8311; for the Unicode glyph, \\2077 only inside CSS content, and <sup>7</sup> when you want semantic superscript.

Key Takeaways

  • Unicode: Superscript Seven is U+2077 (decimal 8311).
  • HTML: use &#x2077; or &#8311; when you need an entity.
  • CSS: use \2077 inside content for generated text.
  • Alternative: use <sup>7</sup> for semantic superscript formatting.

One line: U+2077 → &#x2077; / &#8311; / CSS \2077, or semantic <sup>7</sup>.

Frequently Asked Questions

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

Did you know?

Superscript seven is Unicode U+2077 (decimal 8311). HTML5 has no named entity for it — unlike &sup1;, &sup2;, and &sup3;. Use &#x2077; or &#8311;. It is a different character from digit seven (U+0037) and from subscript seven ₇ (U+2087).

Next: Digit Eight (8)

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

Digit 8 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