Heat and temperature are not the same - temperature is an object's response to heat input or removal. Water moderates global temperatures through its thermal properties - it stores heat during the day and releases it at night. The structure and movement of oceans depends on water density, which varies with temperature and salinity. A water molecule is made of two hydrogen atoms and one oxygen atom bonded together. Hydrogen bonds between water molecules give water many unique properties, such as high surface tension and the ability to absorb large amounts of heat with little temperature change. Ocean stratification into layers depends on variation in temperature and salinity with depth.