GIF vs PNG
GIF was introduced by CompuServe in 1987. It stores up to 256 colours per frame, supports simple on/off transparency and can hold several frames for animation, which is why it is still used for short loops.
PNG was created in the mid-1990s as a patent-free replacement for still images. It supports millions of colours, smooth alpha transparency and better compression, so it is the better choice for any image that doesn't move.