Morse code encodes characters using short and long signals, conventionally dots and dashes, together with timed gaps. In International Morse code, a dash lasts three dot units; gaps within a character last one unit, between characters three, and between words seven. Thus character boundaries are part of the encoding.
For example, is three dots and is three dashes. If gaps are erased, the dot-dash strings alone are not a prefix code: the code for , one dot, is a prefix of that for , two dots. This makes Morse code a useful example of how a communication code can rely on timing as well as symbol choices.[ref]
https://www.itu.int/rec/R-REC-M.1677. Recommendation ITU-R M.1677, International Morse code, Annex 1
New to topics? Read the docs here!