Listen to different electronic music artists to an idea of the sub-genres that are a part of the scene. Study the genre thoroughly and identify which style you like the best. Take notes on certain aspects of the music: beats per minute (bpm), techniques utilized, song lengths and so forth.
Open the DAW. You should have a blank slate to work with.
Create a dance music template (this step will vary, depending on which DAW you are working with). Label each track with the appropriate instruments and save it to be loaded whenever you want to make a dance track. This saves time in the long run.
Set the tempo. A slow to mid-tempo track is around the 120 bpm. An extremely fast track will be 160 or more.
Start with basic "four on the floor" bass drum pattern that hits on every down beat. This is standard in dance music. Add a snare hit on every second and fourth downbeat. Then add a high-hat pattern. Do this every four bars.
Set the drum sequence to loop. Select another track, fire up the synth and pick a sound that has some bottom end on it for the bass line. Play along with the drum sequence until you have what you like. Record the bass line.
Experiment with the different sounds on the synth to determine what will be the best sound for a lead line.
Create the next section of the song repeating steps five through seven.