Electrolysis of Aqueous Solutions
Water molecules ionise (split) forming ions and hydroxide ions
Hydrogen will be at the cathode if the element is more reactive than it
If the aqueous solution contains halide ions, then the halogen will be produced at the anode