The code used for electrical layout in residential buildings is the Canadian Electrical Code, CE Code, or CSA C22.