Element size is based on the wavelength of signal.
So when you hear someone say "2 meter band" that means the wave length is in the 2 meter range, and if you're using a full wave antenna, it would be about 2 meters in length. Sometimes these antennas are coiled and put inside a tube or in the case of Citizens Band (CB) radio in the US which runs in the high 20 MHz band, the wavelength is very long so the base of the antenna mount usually has a coil of wire that takes up the length and you can adjust the exposed part up or down a few centimeters to tune for best performance.
Wifi wavelength is only a few centimeters so all the antenna parts will be around that for a full wave antennal.
There's also 1/2 wave, 1/4 wave etc designs but that starts to get outside my level of understanding.