How can I extract sodium and chloride from salt?
You can't do it at home, but sodium and chlorine are obtained commercially by passing an electric current through molten salt.
Salt melts at 801 °C, chlorine is a poisonous gas, and molten sodium is extremely reactive.
Liquid sodium floats to the top and is drained off into a storage tank.
The chlorine gas bubbles out of the molten salt above the anode