SR flip flops use two inputs (S and R) to set and reset the output.  D flip flops use a single input (D) to set the output. D flip flops are preferred over SR flip flops as they eliminate the possibility of invalid states.