Pan head screw heads get their title from resembling a pan design. Pan head screws are like oval head screws in which The top of the screw is designed to sit out on the surface they are preset into.
Hex cap screws are https://jananovd073637.bloggactif.com/30594955/types-of-screw-heads-for-dummies