The hot wire to the fan in a fan/light kit will usually be black and the light wire will be blue. The white wire is usually the neutral which is always connected directly to the source neutral, either at the source or through a splice in the switch box. The white wire may also be used to carry current when necessary.
In this diagram wall outlets are wired in a row using the terminal screws to pass voltage from one receptacle to the next. In this diagram, multiple receptacles are connected together using the device, instead of a pigtail splice as shown in the next diagram. Using this method, any break or malfunction at one outlet will likely cause all outlets that follow to fail as well.
Here a gfci receptacle is added at the end of a row of duplex receptacles for single-location protection. The first outlet is connected to the source and 2-wire cable runs from box to box. All wires are spliced with a pigtail at the devices to pass current from one to the next. The load terminals on the gfci are not used and it does not protect the other receptacles in the circuit.
Here 3-wire cable is run from a double-pole circuit breaker and split to supply 120 volts to two sets of receptacles. The neutral wire from the circuit is shared by both. This wiring is commonly used in a 20amp kitchen circuit where two appliance feeds are needed, such as for a refrigerator and a microwave in the same location.
In this diagram, a light switch and receptacle are wired in the same box. Both devices are spliced to the same hot source and the neutral to the neutral on the receptacle, and through to the light fixture located in a separate box.
Use this wiring when the source is at the fixture and you want to control the feed to both components with the same switch. Three-wire cable runs from the fan to the switch box and the source neutral is spliced to the white wire and to the fan neutral.
This wiring arrangement allows for lowering the lights with a dimmer and controlling the fan with the builtin pull chain. The source is at the ceiling outlet box and 3-wire cable runs from there to the switch box. The neutral from the source is spliced directly to the white wire on the fan kit and the cable, running it through to the switch box.
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.