Explanation
The lonely first element
Hydrogen has just one electron: 1s¹.
That single electron makes it look like two very different families.
Like the alkali metals
Like lithium and sodium, hydrogen has one outer electron and loses it to show plus one.
It forms oxides, halides and sulphides just like them.
Like the halogens
But like fluorine and chlorine, it is one electron short of a noble gas.
It gains one electron to form the hydride ion, H minus, and it exists as a diatomic molecule.
Trap: H⁺ never exists alone
Its ionisation enthalpy is very high, 1312 kilojoules per mole, far above the alkali metals.
And a bare proton is so tiny it never exists free: it always sticks to something, like water as H₃O⁺.
So hydrogen is placed separately, at the top of group 1.
Three isotopes
Hydrogen has three isotopes: protium, deuterium and tritium.
Same one proton, but zero, one or two neutrons.
Only tritium is radioactive. It gives off beta particles, with a half-life of about 12.3 years.
Same chemistry, different speed
Isotopes have the same electron configuration, so they react the same way.
They differ in rates of reaction, because of their different masses. That's called the isotope effect.
In the lab
In the lab, granulated zinc reacts with dilute hydrochloric acid.
Zinc also gives hydrogen with aqueous sodium hydroxide.
Also: Zn + 2NaOH → Na₂ZnO₂ (sodium zincate) + H₂
On a large scale
Commercially, steam is passed over hydrocarbons or hot coke at about 1270 kelvin, using a nickel catalyst for the hydrocarbon.
The mixture of carbon monoxide and hydrogen is called water gas or syngas.
Then the water-gas shift reaction turns carbon monoxide into more hydrogen.
Other sources
Electrolysis of acidified water also gives very pure hydrogen.
And it's a by-product when brine is electrolysed to make sodium hydroxide and chlorine.
Why H₂ is so stable
The H–H bond is very strong: about 436 kilojoules per mole, the highest for a single bond between two atoms of any element.
That's why hydrogen is fairly unreactive at room temperature.
It's used in the Haber process, to harden vegetable oils with a nickel catalyst, to make methanol, and as a rocket fuel.