H + ions are attracted to the cathode , gain electrons and form hydrogen gas. OH - ions are attracted to the anode , lose electrons and form oxygen gas.
Two non metal combined together and form the bond is called covalent bond Note - yellow color molecules in pictures are non metal elements example - co2 , so2,