Covalent bonding is characterized by the sharing of valence electrons between nonmetals, which is essential for the formation of covalent compounds. These compounds exclusively involve nonmetals that aim to achieve a stable electron configuration, similar to that of noble gases. This stability is often described by the octet rule, which states that atoms tend to react in ways that allow them to have eight valence electrons, thereby filling their outer shell.
In addition to the octet rule, there is the duet rule, which specifically applies to hydrogen. Hydrogen seeks to achieve a total of two valence electrons to mimic the electron configuration of helium, the nearest noble gas. This means that hydrogen only needs to gain one additional electron to fulfill its duet requirement.
Overall, the motivation behind these bonding behaviors is to attain electron arrangements that provide stability, with nonmetals forming bonds to satisfy either the octet rule or the duet rule. Understanding these principles is crucial for grasping the nature of covalent compounds and their formation.