―
Horizontal Bar
Horizontal Bar • U+2015
Click to Copy Symbol
Symbol Description
The horizontal bar is a longer horizontal line primarily used for quotations or special formatting.
Primary Uses:
- •Quote source attribution
- •Speaker identification in dialogue
- •Special format separation
Technical Information
Unicode
U+2015
HTML Code
―
CSS Code
\2015
Hex Code
―
Usage Examples
― Shakespeare
― Hello there!
― Separator ―
Input Method Guide
Windows Input Methods
1Alt Code
- 1
Make sure Num Lock is enabled
- 2
Hold down the left Alt key
- 3
Type 8213 on the numeric keypad
💡 Alt codes require a physical numeric keypad and may not work in some laptops or apps. If it fails, use the Unicode Alt+X method below.
- 4
Release Alt key, horizontal bar (―) will appear
2Unicode (Alt+X)
- 1
Type 2015 in the document
- 2
Press Alt + X to convert to the symbol
💡 Alt+X works in Microsoft Word and many Office apps. It is not supported in Notepad and some third-party editors.
3Word Method
- 1
Type 2015 then press Alt+X in Microsoft Word
- 2
Alternatively, use Insert > Symbol if Alt+X is unavailable