Awake, As Minh-Thanh's diagram shows - a Triac simply switches on at some point and off again at each transit through zero volts - so it chops the power so that on average the voltage gets less as you dial it down.
This is a pretty blunt instrument but works fine on resistive loads like...