D-type flip-flops are used in prescalar/divider circuits and frequency phase detectors. This circuit shows how a D-flip-flop can be made to change state and switch two coloured LED's.
Please note: EveryCircuit has included a power source into some components such as logic gates to save workspace. This circuit takes advantage of this initiative recognising this isn't indicative of reality and is only applicable in a simulator environment.