HTML Entity for Figure Dash (‒)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2012

What You'll Learn

How to display the Figure dash (‒) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2012 (FIGURE DASH) in the General Punctuation block (U+2000–U+206F)—a typographic dash used for number ranges, dates, and figure-related formatting, often similar in width to digits in proportional fonts.

Render it with ‒, ‒, or CSS escape \2012. There is no named HTML entity. For general ranges many style guides use the en dash (–, –); use the figure dash when you need figure-width alignment between numbers.

⚡ Quick Reference — Figure Dash

Unicode U+2012

General Punctuation

Hex Code ‒

Hexadecimal reference

HTML Code ‒

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2012
Hex code       ‒
HTML code      ‒
Named entity   (none)
CSS code       \2012
Meaning        Figure-width dash for numbers / ranges
Related        U+2013 = En dash (–); U+2014 = Em dash (—)
1

Complete HTML Example

This example demonstrates the Figure dash (‒) using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2012";
  }
 </style>
</head>
<body>
<p>Figure Dash using Hexadecimal: 2020&#x2012;2024</p>
<p>Figure Dash using HTML Code: pages 10&#8210;15</p>
<p id="point">Figure Dash using CSS Entity: 1</p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Figure dash entity is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the figure dash (‒) in range context and compared with other dashes:

Year range 2020‒2024
Page range pp. 10‒15
Dash comparison figure ‒   en –   em —   hyphen -
Large glyph
Numeric refs &#x2012; &#8210; \2012

🧠 How It Works

1

Hexadecimal Code

&#x2012; uses the Unicode hexadecimal value 2012 to display the Figure dash. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8210; uses the decimal Unicode value 8210 to display the same character.

HTML markup
3

CSS Entity

\2012 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All three methods produce the Figure dash: . Unicode U+2012 is in General Punctuation. No named HTML entity—use numeric codes in markup.

Use Cases

The Figure dash (‒) is commonly used in:

🔢 Number ranges

Ranges between numbers (2020‒2024, pages 10‒15, 1‒100).

📅 Dates & spans

Date ranges (January‒March, 1990‒2000) in text and tables.

📝 Typography

Formal text, quotes, and lists where a distinct dash improves readability.

📄 Formal documents

Reports, contracts, and professional documents with consistent dash styling.

📊 Tables & data

Separate figures, scores, or values (e.g. 50‒99) in tables.

📚 Citations

Page ranges and bibliographic formatting in references.

💡 Best Practices

Do

  • Use the figure dash between numbers for figure-width alignment (2020‒2024)
  • Omit spaces around the dash in numeric ranges (2020‒2024, not 2020 ‒ 2024)
  • Use &#x2012; or &#8210; consistently within a project
  • Choose the right dash: figure ‒, en –, or em — per your style guide
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse figure dash (‒) with en dash (–) or hyphen-minus (-)
  • Expect a named entity—none exists for U+2012
  • Put CSS escape \2012 in HTML text nodes
  • Use a hyphen (-) when typography calls for a proper dash
  • Mix entity styles randomly in one file

Key Takeaways

1

Two HTML numeric references plus CSS render ‒

&#x2012; &#8210;
2

For CSS stylesheets, use the escape in the content property

\2012
3

Unicode U+2012 — FIGURE DASH

4

General Punctuation block; ideal for number ranges

5

Three methods, no named HTML entity

❓ Frequently Asked Questions

Use &#x2012; (hex), &#8210; (decimal), or \2012 in CSS content. There is no named entity.
U+2012 (FIGURE DASH). General Punctuation block (U+2000–U+206F). Hex 2012, decimal 8210. Used for typographic formatting with numbers and ranges.
For number ranges (2020‒2024), dates and time spans, formal documents, tables and data, and layout where a figure-width dash is desired between numerals.
HTML references (&#8210; or &#x2012;) go in markup. The CSS escape \2012 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Named HTML entities cover a subset of common characters. U+2012 is in General Punctuation and uses numeric codes. The en dash has &ndash; (U+2013); the figure dash does not have a named equivalent.

Explore More HTML Entities!

Discover 1500+ HTML character references — punctuation, symbols, and more.

All HTML Entities →

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