What is the difference between a putter and a driver in golf?

In golf, a driver is generally used from the tee box to hit the ball as far as possible at the beginning of a hole. A putter is used when on the green to hit the ball short distances on the ground into the hole.