Everybody thinks that internet has a negative impact on the music business. Illegal sharing of data and copyright irregularities have lead to a significan losses in profits of the music industry.
First choose what type of dance music you want to write. Listen to a large variety of music styles and find out you liked best. There's electronic, trance, club, and other styles and sub-genres of dance music.