Whats a snap cap?

I always thought they were shells you put in your shotgun so you can take the pressure off the firing pins?