For nonmetals, the more greater the nuclear charge, the greater the acidity as you compare groups and periods. You cannot compare diagonally, e.g., F vs S.
For MissP, bond lengths CH4>NH3>H2O>HF. CH4 has the longest bond and is the weakest acid. The key is not the bond length, but the proton-electron pair distance. This is consistent with Coulomb's inverse square law and also consistent with the HX halo-acids. It isn't the bond length of HI that makes it a strong acid, it is the greater proton-electron pair distance that increases the acidity. As the nuclear charge is increased, the electrons surrounding the it are pulled in, therefore HF is the strongest acid in its group and HI in its period. The difference is that as you progress down a period, each additional shell increases its radius. But it isn't the radius that matters, because that would imply CH4 should be the strongest acid.