Each polar bond is a small tug of war over electrons. In an O–H bond, oxygen is more electronegative, so it pulls the shared pair closer and gains a partial negative charge, δ−, leaving hydrogen δ+. Draw that pull as an arrow from H toward O. A molecule is polar when all its bond arrows, added head to tail, leave a net arrow; it is nonpolar when they add to zero.
Shape decides the sum. CO₂ is linear: its two C=O arrows point in exactly opposite directions, like two equal teams pulling a rope from either end, so the net pull is zero and CO₂ is nonpolar. Water has the same kind of polar bonds, but the two lone pairs on oxygen bend it to about 104.5∘. Both O–H arrows now lean toward the oxygen side, so they add to a net dipole and water is polar. CCl₄ is a tetrahedron with four identical C–Cl arrows that cancel; swap one Cl for H to make CHCl₃ and the balance breaks, so chloroform is polar.
The common trap is mixing up bond polarity with molecular polarity. 'Contains polar bonds' describes one pair of atoms; 'is polar' describes the whole molecule after you add the arrows. So never decide from the formula: draw the shape, include the lone pairs on the central atom, and only then add the arrows.
Think of it like this. Molecular polarity works like several people pulling ropes tied to one ring. Equal pulls in balanced directions, as in CO₂ or CCl₄, leave the ring still; pulls from a lopsided arrangement, as in bent water, drag it one way. Where the picture stops: bond 'pulls' are partial charges, not forces you could feel.
Core idea. A molecule is polar only if its bond dipoles, added as arrows over its three-dimensional shape, leave a net pull in one direction; polar bonds arranged symmetrically cancel out.