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)
\2014JavaScript Unicode (\uXXXX)
\u2014URL Percent Encoded
%E2%80%94Real-World Implementation Snippets
HTML5 Document
<p>Example: —</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 "—". If using numeric codes, you can use the decimal code "—" or hex code "—".