How do you wire an electrical outlet and light switch in a bathroom? Box is existing, wires existing.
In the fixture part [light] is the power [white neutral ,black hot, green or bare is ground] for the switch it is black and white, you hook up the switch on the hot side of the power.it does not matter on the switch side as long its on the hot side [by code]
Make sure you get an GFCI outlet ..
If you are in the UK and you are referring to an electrical socket or power point, it is illegal to have one in the bathroom. If you need to ask how, leave the electrics to qualified tradesmen before you either get a belt from it or cause a fire.
Yes, most EL code is to use GFI outlet ear water (kitchen, Bath). Make sure the piwer is off and simply remove the three (hot=black, common=white, Ground= bare) wires (two is not grounded) and reconnect the outlet.
The first trick is to identify the wires. White wires will normally be neutral; there will be at least two colored or black wires, one of which will be the hot supply wire. Use a neon tester ($2 at a hardware store) to idenify which. If all of the white wires were tied together, then the switch will simply connect the two colored wires to each other; brush these together to verify that the light flashes. Now turn off the power at the breaker box. Connect the hot supply wire to a brass screw on the outlet, and attach a 6 piece of black wire to the other brass screw. Connect the joined white wires to a nickel-plated screw (you may need a wire nut and short piece of white wire to do this). Connect the short black wire to one of the screws on the switch, and the existing black wire to the other screw. And that should do it. Note that a double-width box is necessary for this. Code requires that a GFCI device be used in all bathroom outlets. If there is not one in the breaker box servicing the line to the bathroom, you should use a GFCI outlet device (about $12) rather than a conventional outlet. You can get a cover plate to match.