(a) How do metals react with hydrogen? Explain with an example.
(b) How do non-metals react with hydrogen? Explain with an example.
(a)Only some metals like sodium, potassium, calcium, magnesium react with hydrogen to give a metal hydride which is ionic in nature.
For eg.
2Na+H2⟶2NaH
(b)Non-metals react with hydrogen to form covalent hydrides. For example, nitrogen, oxygen, sulphur and chlorine react with hydrogen to form ammonia, water, hydrogen sulphide and hydrogen chloride, respectively.
N2+3H2⟶2NH3
Cl2+H2⟶2HCl
The number of non-metals is much smaller, but they are the major constituents of air, ocean and earth. Oxygen is the most abundant element in the earth's crust, followed by silicon. The two non-metals constitute about 74.3% (by mass) of the earth's crust