To form a covalent bond, one electron from the halogen and one electron from another atom form a shared pair (e.g., in the molecule H–F, the line represents a shared pair of valence electrons, one from H and one from F).