|Relevant topics on|
|Wiring practice by region or country|
|Regulation of electrical installations|
|Cabling and accessories|
|Switching and protection devices|
An electrical code is a set of regulations for the design and installation of electrical wiring in a building. The intention of a code is to provide standards to ensure electrical wiring systems that are safe for people and property.
Such wiring is subject to rigorous safety standards for design and installation. Wires and electrical cables are specified according to the circuit operating voltage and electric current capability, with further restrictions on the environmental conditions, such as ambient temperature range, moisture levels, and exposure to sunlight and chemicals. Associated circuit protection, control and distribution devices within a building's wiring system are subject to voltage, current and functional specification. To ensure both wiring and associated devices are designed, selected and installed so that they are safe for use, they are subject to wiring safety codes or regulations, which vary by locality, country or region.
The International Electrotechnical Commission (IEC) is attempting to harmonise wiring standards amongst member countries, but large variations in design and installation requirements still exist.