Cohesion and surface tension keep the hydrogen bonds of water molecules intact and support the item floating on the top. ... This is because the water molecules are attracted to the charged glass walls of the capillary more than they are to each other and therefore adhere to it.