Polarity refers to the pull of electrons. Some elements like Fluorine and Oxygen pull electrons closer to them in their bonds (electronegativity), meaning they don't share them equally. So if they pull them closer, there is polarity in the molecule because there's a pull of electrons between atoms.