H exhibits properties of both, Alkali metals like, 1 valence electron, ability to form halides etc.
and those of halogens like non-metal, diatomic molecule, gaseous state etc.
Hence it position is not fixed in the periodic table and called as a rogue element.