To write the Horizontal Bar symbol ― on keyboard using ALT codes; ALT+8213, just hold down the ALT key while typing the alt key𝐆 code 8213. You have to use the numeric key🔯pad of your keyboard. If you don not have numeric keypad, hold down the Fn and ALT keys while typing the alt code number.