Two Wire Switch Diagram. Keep in mind that the break way fin tab intact between the two black terminals on line side ie. Wiring a rocker switch depends on the type you plan on using so your wiring will depend on the amount of pins your rocker switch has.
Two way switching allows you to control a light from two locations. Just make sure your black hot wire goes to the common terminal. Explanation of wiring diagram 1.
Pin1 pin2 of the first.
The power is coming into the light fixture first. They often call the other black wire that goes from. This is the preferred approach. The power is coming into the light fixture first.