Learn two ways to wire a switch when an outlet or fixture box is closer to the power source than to the switch box.
Wiring - Fine Homebuilding
Wiring a Switch Loop - Fine Homebuilding
Making Up a Three-Way Switchbox - Fine Homebuilding
Is it okay to wire light switches and lights with a 12/2 cable, or
wipe Refreshing that's all installing new light switch Saturate
Wiring a Switch Loop - Fine Homebuilding
Switch Loops & Neutrals Explained & Best Practices
Wiring a Single-Pole Switch - Fine Homebuilding
Wiring - Fine Homebuilding
wipe Refreshing that's all installing new light switch Saturate
wipe Refreshing that's all installing new light switch Saturate
Wiring a Switch Loop - Fine Homebuilding
electrical - How should ground wires be handled when updating