HTML Entity Detail

HTML Entity - Em-dash ("us-dash—use Without Spaces")

Em-dash ("US-dash—use Without Spaces") is a punctuation marks and special text formatting characters. This HTML entity enables web developers to display this character reliably across all browsers without encoding issues.

Symbol preview
Unicode

U+2014

HTML entity

—

CSS code

\2014

Usage Examples

Use this HTML entity in professional typography for dashes, ellipsis, and special punctuation. For example, — for em-dash, … for ellipsis.

Common Mistakes

⚠️

Mistake: Using two hyphens -- instead of the proper em-dash —

Fix: Use — (—) for em dashes. Using -- is a typewriter convention and looks unprofessional in proper typography.

⚠️

Mistake: Confusing em-dash — with en-dash –

Fix: The em-dash — is the width of the letter "m" and is used for breaks in thought. The en-dash – is the width of "n" and is used for ranges.

⚠️

Mistake: Adding spaces around em-dash incorrectly

Fix: In American English, em dashes have no spaces around them (like—this). In British English, they often use spaces (like — this). Be consistent.

Em-dash ("us-dash—use Without Spaces")

Select any code to highlight it before copying.

Category: Punctuation Marks
Unicode U+2014
Hex Code —
HTML Code —
HTML Entity —
CSS Code \2014
Windows Shortcut Alt 0151
Mac Shortcut ⇧⌥-
HTML code example
CSS code example
Help2Code Logo
Menu