The attraction between a slightly positive hydrogen atom and a slightly negative atom often oxygen or nitrogen is called covalent bonding. This type of bond happens when electrons are being shared by atoms in order to be more stable. Hope this answers the question.