Typography & Punctuation
–
En Dash (–)
The en dash is equal to the width of the letter "N", half the width of an em dash. Typographically standard for numeric and date ranges (e.g. 2020–2026, pp. 14–28).
One-Click Copyable Code Formats
HTML Named Entity
–HTML Decimal Code
–HTML Hex Code
–CSS content (\XXXX)
\2013JavaScript Unicode (\uXXXX)
\u2013URL Percent Encoded
%E2%80%93Real-World Implementation Snippets
HTML5 Document
<p>Example: –</p>CSS ::before / ::after
.badge::before {
content: '\2013 ';
}React JSX / TypeScript
<span>{"\u2013"}</span>Frequently Asked Questions
En 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 "–".