Ice floats because ice is less dense (lighter) that water, especially the denser oceanic waters. Though ice floats, most of the ice cube, ice berg, etc, remains beneath the surface with only a portion showing above the surface.
Ice floats on water because ice is less dense than water. Water has a density of 1 and the density of ice is 0.9167, which is less than 1, therefore it floats