Electrolysis is a process of chemical decomposition of the electrolyte by the passage of electric current. It is carried out in a cell called electrolytic cell. This cell converts electrical energy into chemical energy.
There are two types of electrodes used in the electrolytic cell, namely attackable and non-attackable. The attackable electrodes participate in the electrode reaction. They are made up of reactive metals such as Zn, Cu, and Ag. In such electrodes, atom of the metal gets oxidized into the corresponding cation, which is passed into the solution. Thus, such anodes get dissolved and their masses decrease. On the other hand, non-attackable electrodes do not participate in the electrode reaction as they are made up of unreactive elements such as Pt, Au, and graphite. Such electrodes do not dissolve and their masses remain the same.