Typography & Punctuation

Em Dash ()

The em dash is a long typographical horizontal bar equal to the width of the letter "M". Used to create a strong pause, parenthetical statement, or abrupt change of thought.

One-Click Copyable Code Formats

HTML Named Entity
—
HTML Decimal Code
—
HTML Hex Code
—
CSS content (\XXXX)
\2014
JavaScript Unicode (\uXXXX)
\u2014
URL Percent Encoded
%E2%80%94

Real-World Implementation Snippets

HTML5 Document
<p>Example: &mdash;</p>
CSS ::before / ::after
.badge::before { content: '\2014 '; }
React JSX / TypeScript
<span>{"\u2014"}</span>
Frequently Asked Questions

Em Dash (—) HTML Entity FAQ

Common questions regarding HTML escape codes, CSS pseudo-elements, and browser character encoding.

The standard HTML named entity is "&mdash;". If using numeric codes, you can use the decimal code "&#8212;" or hex code "&#x2014;".