I am happy to be corrected, but I believe the only industrial scale production of hydrogen is splitting hydrocarbons. Using electrolysis is hugely inefficient.
If this is true, a lot of talk of hydrogen is submarine marketing for the fossil fuel industry.