The neutral and ground wires for the circuit are connected to a bar along the side of the service panel box. The neutral and grounding bars in the box may be separate or, in the case of older service panels, the same bar may be used for both purposes.
This drawing illustrates the wiring for a split receptacle controlled by a switch. The tab connecting the hot terminals on the receptacle is removed and the source hot is connected to the bottom half. The source neutral is connected to one of the neutral terminals on the receptacle.
This is a wiring diagram for an antique floor lamp with 4 bulbs, one main bulb and 3 peripheral, and usually smaller bulbs. The main bulb threads into a standard socket with an integrated switch and the three peripheral bulbs are wired to a single switch. The secondary switch may have wires colored black, blue and red or, if it’s an old switch, other colors or texturing may be used to distinguish them.
An isolated-ground receptacle makes use of an extra wire for a separate ground in the circuit. This is the red wire in the 14/3 cable used here which is marked and connected to the grounding terminal on the receptacle. The other cable wires are connected as with any other circuit except for the ground wire. The bare copper ground wire is NOT connected to the receptacle, instead it is connected to the grounding terminal inside the electrical box where the receptacle is housed.