The contraction “soundtrack” came into use with the advent of so-called "soundtrack albums" in the early 1950s. First conceived by movie companies as a promotional gimmick for new films, these commercially available recordings were labelled and advertised as "music from the original motion picture soundtrack." This phrase was soon shortened to just "original motion picture soundtrack." More accurately, such recordings are made from a film's music track because they usually consist of the isolated music from a film, not the composite (sound) track with dialogue and sound effects.
Soundtrack now most commonly refers to the music used in a movie (or television show), and/or to an album sold containing that music. Sometimes, the music has been recorded just for the film or album (e.g. “Saturday Night Fever”). Often, but not always, and depending on the type of movie, the soundtrack album will contain portions of the score, music composed for dramatic effect as the movie's plot occurs. A soundtrack record can contain all kinds of music including music inspired by but not actually appearing in the movie.
In 1908, Camille Saint-Saens recorded the first music specifically for use in a motion picture (L'assasinat du duc de Guise), and releasing recordings of songs used in films became prevalent in the 1930s. Henry Mancini, who won an Emmy Award and two Grammys for his soundtrack to Peter Gunn, was the first composer to have a widespread hit with a song from a soundtrack.