Covalent bonding represents a type of chemical bonding. Here we have molecular bonds involving the sharing of valence electrons between nonmetals. Now if we take a look here, we have two chlorine atoms and two oxygen atoms. Chlorine is in Group 7A. It just needs one more electron to become just like argon, the noble gas next to it.
So how can it gain that one electron? What it does is it teams up with another chlorine or another element, and it's going to share one of the electrons from its neighbor. O here, the two chlorines, they're both going to share an electron with each other. So here are our chlorines and they're sharing 1 electron with each other. Neither one has sole possession of both electrons. They're sharing the electrons together. So in essence they both have reached the same number of electrons as argon. They're fulfilling, filling out their outer shell, and being like a noble gas.
Oxygen oxygen's in Group 6A, so it needs two more electrons to become just like neon. What does it do? It decides to share its two electrons with another oxygen. So here are our oxygens and sharing their electrons with one another. And in that way they've achieved in a filled outer shell, just like neon the noble gas closest to them. And notice here that these elements are forming the single bond between each other with the chlorines and a double bond between the oxygens.
As we delve deeper and deeper into different types of chemical compounds, we'll learn about the bonding preferences found between different elements. But remember, it's always trying to form the optimal number of electrons to help fill out their outer shell and become just like a noble gas, at least when we're talking about covalent bonding. So just remember, covalent bonding involves nonmetals sharing electrons with one another.