Horizontal Bar vs Non-Breaking Hyphen
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://symbolfyi.com/iframe/entity//" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://symbolfyi.com/entity//
Add a dynamic SVG badge to your README or docs.
[](https://symbolfyi.com/entity//)
Use the native HTML custom element.
VS
Property Comparison
| Property | ― 2015 | ‑ 2011 |
|---|---|---|
| Name | Horizontal Bar | Non-Breaking Hyphen |
| Category | Dashes & Hyphens | Dashes & Hyphens |
| Block | General Punctuation | General Punctuation |
| Script | Zyyy | Zyyy |
| General Category | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 2015 | 2011 |
|---|---|---|
| Unicode | U+2015 | U+2011 |
| HTML Decimal | ― | ‑ |
| HTML Hex | ― | ‑ |
| CSS | \2015 | \2011 |
| JavaScript | \u{2015} | \u{2011} |
| Python | \u2015 | \u2011 |
| UTF-8 | e2 80 95 | e2 80 91 |
How to Distinguish
Both Horizontal Bar and Non-Breaking Hyphen belong to the Dashes & Hyphens category and the General Punctuation block. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.