Because the electrical code as of the 2011 nec update requires a neutral wire in most new switch boxes a 3 wire cable runs between the light and switch. Wiring light switch is first step which learn by a electrician or electrical student.

Help For Understanding Simple Home Electrical Wiring Diagrams
Electrical light switch wiring diagram. Another nm cable connects from the light fixture box to the switch box. With a pair of 3 way switches either can make or break the connection that completes the circuit to the light. Switch wiring diagrams a single switch provides switching from one location only. This is an updated version of the first arrangement. Wiring switches wiring diagrams for switches single switch wiring diagram 1 single switch wiring diagram 2 3 way switch wiring diagram 4 way switch wiring diagram dimmer switches. Wiring a 3 way light switch is certainly more complicated than that of the more common single pole switch but you can figure it out if you follow our 3 way switch wiring diagram.
This connection can be done by one way switch a light bulb socket light bulb and electric wires. Wiring a 3 way light switch. Installing additional electrical wiring for light switches should be done according to local and national electrical codes with a permit and be inspected. The red and black are used for hot and the white neutral wire at the switch box allows for powering a timer remote control or other programmable switch. With alternate light switch wiring an nm cable supplies line voltage from the electrical panel to a light fixture outlet box. Single pole may sound simple but there are different ways to wire a single pole switch.
This connection is very simple connection and most used in electrical house wiring. The power can come from either the switch box or the fixture box and a set of electrical switch wiring diagrams will explain each of these scenarios to you clearly. In the diagram below right a 2 wire nm cable that connects the light fixture to the switch carries 2 line wires one line and one switched line.