In the Romantic era the waltz became popular. Many waltzes were written to be danced to, but other composers simply wrote music (especially piano music) called “waltz”. Chopin wrote piano pieces called after several kinds of dance: waltz, polonaise, mazurka etc. Ballet had become very popular. There was a lot of dance music in operas, especially in French operas.