F2 has temporary dipole-dipole interactions known as van der Waals’ forces. Whilst HCl has permanent dipole-dipole interactions. The intermolecular forces in HCl are stronger than that in F2 (permanent dipoles are stronger than induced dipoles). More energy is required to break stronger intermolecular forces, therefore, HCl has a higher boiling point