The method of communication that uses dots and dashes is called Morse code. Each letter of the alphabet and various punctuation marks have a specific pattern of dots and dashes that represent them in Morse code. This method has been used historically for long-distance telegraph communication.