Hydrogen can form compounds with elements that are more electronegative, such as halogens (e.