Remove the tank lid and use a sponge to soak up any excess water. The gasket is a large rubber ring on the bottom of the toilet's tank. Common types are black or red. Pull off the old gasket.
With cylindrical floats, the water enters the tank from the bottom of the cylinder, making the refilling process quiet. A toilet has two important gaskets that keep water from leaking onto the floor.