What is GIF?
Thirty-five years old and still everywhere, because it does one thing nothing else quite does: animate inline, silently, in any context that displays an image. The cost is a 256-colour palette and no real motion compression, which makes GIF a poor way to store video and an excellent way to send a three-second loop.
What is WebP?
Google's format for the web, and a genuine improvement on both of the formats it replaces: lossy like JPG or lossless like PNG, transparency either way, and usually about 30% smaller. Every current browser reads it. Software that stopped being updated around 2019 often doesn't.