Starting in 1836, the American artist Samuel F. B. Morse, the American physicist Joseph Henry, and Alfred Vail developed an electrical telegraph system and code. The code was needed to transmit natural language using only pulses, and the silence between them.
Although they were not the first to invent a telegraph system, they were the first to make a commercial success of it. Their system was first used in about 1844, and was designed to make indentations on a paper tape when electric currents were received. Morse's original telegraph receiver used a mechanical clockwork to move a paper tape. When an electrical current was received, an electromagnet pushed a stylus onto the moving paper tape, making an indentation on the tape. When the current was interrupted, a spring retracted the stylus, and that portion of the moving tape remained unmarked.
Soon, the shorter marks were called "dots", and the longer ones "dashes", and the letters most commonly used were assigned the shorter sequences of dots and dashes. This code was used since 1844 and became known as Morse Code.