Floating hats have special inserts in the brim or crown that allow the hats to float on top of the water.