Focal length and compression

Here’s a good visual example (from digital photography school) of differing focal length and its effects on the background:

How to use Focal Length and Background Compression to Enhance Your Photos