This diagram shows two switches in the same box with two separate 120 volt sources. Three-wire cable is supplying the source for both switches with the black and red wires going to the bottom switch terminals. The black wire from each light is connected to the top terminal of their respective switch. The white and ground wires are spliced to run to each light fixture.
In these cases, it should be wrapped with electrical tape to mark it as hot. The ground wires will be green and/or bare copper. The ground should be spliced with a short piece of wire and connected to each device and outlet box that has a grounding terminal. In these drawing the brass colored terminal represent the hot side of the device and the silver colored terminal represent the neutral. Ground wires and terminals are in green.
Use this wiring when the power source originates at the switch and you want to control both the fan and light from there. The hot source is connected directly to the bottom terminal on the switch. Two-wire cable runs from there to the ceiling fan.
In this diagram multiple ground fault circuit interrupter receptacles are wired together using pigtails. Two-conductor cable is run between gfci’s, and the hot, neutral and ground wires from the source are spliced to the line terminals at each device. The load terminals are not used and each device provides its own, single-location protection.