Take a look at [u]this example[/u] and [u]this example[/u].
The examples use momentary pushbutton switches, but a toggle switch would be wired the same way.
BTW - A regular light swith is a SPST (single-pole, single-throw) on-off switch. It has two terminals and works like any other SPST switch.
A "3-way" switch (like when you have one switch at the top of the stairs and another at the bottom) is a SPDT (single-pole, double-throw "on-on" switch with 3 terminals. You can use a SPTD switch in plqace of an SPST switch if you leave one wire/terminal disconnected. (But, "3-Way" light switches are more expensive.)