How can two hydrogen atoms each fill a shell without either giving an electron away?
The water in your bottle at a cricket match contains hydrogen atoms bonded to oxygen. To see how atoms join, start with a simpler puzzle. How can two hydrogen atoms each fill their first shell without either giving an electron away?
Electrons have a negative charge. When a sodium atom transfers one electron to a chlorine atom, sodium loses that electron and becomes a positive ion. Chlorine gains it and becomes a negative ion. The attraction between those oppositely charged ions is an ionic bond.
Each hydrogen atom brings one electron. Watch the two dots appear between the hydrogen symbols. Both atoms count that shared pair, so each counts two electrons in its first shell. One shared pair makes a single covalent bond.
Look back at the two dots between the hydrogen atoms. When you count the electrons in the first shell of just one hydrogen atom, how many should you count? Pick one answer.
Each oxygen starts with six outer electrons, so it needs to count two more to reach eight. Each oxygen contributes one electron to each of two shared pairs. That's a double bond. For either oxygen, count four electrons in its own lone pairs and all four shared electrons. That makes eight.
Now try that same count for nitrogen. Each nitrogen atom starts with five outer electrons and needs to count eight. In a molecule made of two nitrogen atoms, how many pairs must they share? Pick one answer.
Place three shared pairs between the nitrogen atoms and one lone pair outside each. In this triple bond, each nitrogen counts six shared electrons alongside its two unshared electrons. In methane, place one shared pair between carbon and each hydrogen to make four single bonds. Carbon counts eight; each hydrogen counts two.
Carbon forms four bonds and can link into chains. That's catenation. Start with eth for two carbons. Single bonds alone give saturated ethane. A double bond gives ethene; a triple gives ethyne. Both are unsaturated. Members of a homologous series share a general formula, and successive members differ by one carbon and two hydrogens.
When a simple molecular solid melts, its covalent bonds stay intact. It usually melts at a low temperature because the attractions between molecules are often weak. Simple molecular substances also generally conduct poorly. Their molecules are neutral, and they usually have no mobile ions or electrons to carry charge.
To name a compound, count the carbons, then spot the group. With two carbons, chlorine gives chloroethane, an O H group gives ethanol, and a C H O group at the end gives ethanal. With three carbons and the middle carbon double-bonded to oxygen, you get the ketone propanone.