The difference in physical properties among the halogens is due to the van der Waals forces between the molecules. Van der Waals forces are weak intermolecular forces that occur between all molecules. They are caused by the temporary fluctuations in the electron clouds of molecules. These fluctuations create temporary dipoles, which can then attract or repel other molecules.
The strength of van der Waals forces increases with the number of electrons in a molecule. This is because the more electrons a molecule has, the more likely it is to have a temporary dipole. As a result, van der Waals forces are strongest between large, heavy molecules.
Of the halogens, iodine has the largest and heaviest molecules. This means that it has the strongest van der Waals forces. These strong van der Waals forces hold the iodine molecules together, causing iodine to be a solid at room temperature.
The other halogens have weaker van der Waals forces. This is because they have smaller and lighter molecules. As a result, fluorine, chlorine, and bromine are all gases at room temperature.