HTML Entity for Subscript Four (₄)

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

What Is the Subscript Four Entity?

Subscript Four (₄) is the Unicode character at U+2084 in the Subscripts and Superscripts block. It looks like a small lowered 4 and is common in math and science text such as x₄ or C₄.

Remember
Character     ₄
Unicode       U+2084
Hex entity    ₄
Decimal       ₄
CSS escape    \2084
Named entity  (none)

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

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character₄HTML text (UTF-8)
Hex entity&#x2084;HTML markup
Decimal entity&#8324;HTML markup
CSS escape\2084Stylesheet content
Named entity—Not defined in HTML5
Semantic tag<sub>4</sub>HTML (formatting, not the ₄ glyph)

When to use which

SituationUse
Need the Unicode glyph ₄Type ₄, or &#x2084; / &#8324;
Generated text via ::before / ::aftercontent: "\2084"
Semantic subscript for any text<sub>4</sub>
Plain digit four (not subscript)Type 4 (U+0034)
Looking for &sub4; or similarDoes not exist — use numeric form

Live Preview

Subscript Four rendered in common writing contexts.

Inline text Fourth term: x₄ = 4
Large glyph ₄
In a formula C₄   Fe₃O₄   a₁ + a₂ + a₃ + a₄
Monospace x₄ → fourth element
With entities Hex: ₄ | Decimal: ₄
Semantic <sub> x4 (tag styles digit 4)

Complete HTML Example

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

Hex + Decimal + CSS + <sub>

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

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

How It Works

1. Hex: U+2084 → &#x2084; in HTML. The browser turns it into ₄.

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

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

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

Pitfalls & Tips

Common mistakes when working with Subscript Four entities.

Named?

No named entity

HTML5 does not define &sub4; or similar. Use numeric forms.

CSS vs HTML

Do not mix escapes

\2084 belongs in CSS. &#x2084; / &#8324; belong in HTML.

₄ vs 4 vs ⁴

Different characters

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

Glyph vs tag

Choose intentionally

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

Semicolon

End references

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

Fonts

Check the glyph

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

Browser Support

Subscript Four (U+2084) and its numeric entity forms (&#x2084;, &#8324;, CSS \\2084) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Subscript Four (₄)

Encode with hex, decimal, or CSS escape — or use <sub> 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+2084 / entities Full support

Bottom line: Use &#x2084; or &#8324; for the Unicode glyph, \\2084 only inside CSS content, and <sub>4</sub> when you want semantic subscript.

Key Takeaways

  • Unicode: Subscript Four is U+2084 (decimal 8324).
  • HTML: use &#x2084; or &#8324; when you need an entity.
  • CSS: use \2084 inside content for generated text.
  • Alternative: use <sub>4</sub> for semantic subscript formatting.

One line: U+2084 → &#x2084; / &#8324; / CSS \2084, or semantic <sub>4</sub>.

Frequently Asked Questions

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

Did you know?

Subscript four is Unicode U+2084 (decimal 8324). HTML5 has no named entity for it — use &#x2084; or &#8324;. It is a different character from digit four (U+0034) and from superscript four ⁴ (U+2074).

Next: 4 Superscript

Learn the HTML entity for superscript four (⁴) — a different Unicode character from ₄.

4 Superscript 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