A fluid exerts pressure due to its DENSITY right??(As one of the factors,There are other factors too)
Because my text book says that fluid exerts pressure due to its WEIGHT

( pressure in fluids= Height*Density*acceleration due to gravity )