What does viscosity describe?

A. the rate of evaporation of a fluid
B. a fluid's resistance to being heated
C. how much energy it takes to warm a fluid
D. a fluid's resistance to flowing