what is the difference between density and temperature?
Heating a substance causes molecules to speed up and spread slightly further apart, occupying a larger volume that results in a decrease in density. ... Hot water is less dense and will float on room-temperature water. Cold water is more dense and will sink in room-temperature water.