This one is a gray expanding foam that comes in a can with a reusable dispenser. You squeeze the trigger, the foam goes right into the gap and it swells up to about an inch. It leaves a sealed, airtight, water-resistant barrier once it sets. Good spots to try it include around PVC pipes, electrical cable entries, faucet penetrations, attic hatch frames and rim joists.
The dispenser is the part people tend to like most. You thread it onto the can and leave it there, so you can pick the job back up later without wasting a fresh can. It stops the foam when you let go, which means less mess and better control. It suits DIYers and homeowners who want to seal drafts and keep pests out, and who are happy to trim and paint the foam afterward.