How is Static Electricity Formed?

Have you ever gotten zapped when you touched the TV screen or a doorknob? This is static electricity. What happens is, when we walk across carpeting, we keep collecting extra electrons that have gathered on the carpeting. When we touch the TV screen or something like a doorknob, the electrons are discharged onto whatever we touch.