The vertical line symbol serves a number of functions, including denoting absolute value and separating or dividing lines of text. Every keyboard for a Mac, Windows or other OS has the ability to create the vertical line symbol and, regardless of the keyboard you are using, the key for this symbol is in the same location. If you want to create a vertical line with your keyboard, you can do so in a few simple steps.
Place the computer's mouse cursor somewhere where text can be entered. This can be in a document, search bar or any other text box.
Press and hold the Shift key on the computer's keyboard.
Press the \ key while holding the Shift key to create the vertical line symbol. The \ key is located just above the Enter key on a Windows keyboard, or just above the Return key on a Mac keyboard.