The floats can be connected to the watercraft or dock by using appropriate connectors, such as cleats or brackets. These connectors should be securely fastened to both the floats and the watercraft or dock.