Pity if you have never seen it demonstrated experimentally, if you had you would remember. I can remember it was one of the very first demonstrations in chemistry lessons in my school a long long time ago, supposed to demonstrate that water is made out of a combination of hydrogen and oxygen. School teaching laboratories used to have a special apparatus for the purpose of showing this. If you are learning chemistry without a school laboratory, which I sense is increasingly common, this gross lack is these days compensated by YouTube, where you can actually see quite a lot of chemistry. For example here:
A nice thing pointed out is how the volume of hydrogen is twice that of the oxygen - a very significant fact as you might know and might be worth following up immediately looking up the Gay-Lussac law and the kinetic theory of gases.I don't remember Mr Bayford pointing this out the first time I saw it, but that might be my fault. I think he did show the nature of the gases, collecting them in test tube and the one causing a glowing splint to light up brightly, the other making a pop when combusted.
Many YouTube sites illustrate standard visible chemistry, a number on electrolysis of water – I just took a quick look
Here is a nice one.
You'll notice in all cases although they say they are electrolysing water they throw other stuff in. Like Mr Bayford those years ago poured some sulphuric acid in explaining that water was such a bad conductor that this was needed to make the current flow.I thought at the time that deprived the experiment of rigour, and he was just electrolysing sulphuric acid. But at least I remember it!