Fasteners with heads that sit above the surface are measured from under the head to the end of the fastener, while fasteners that sit flush with the surface are measured from the top of the head to the end of the fastener.
Commonly used head styles include flat head, oval head, pan head, truss head, round head, hex head, hex washer head, socket cap head and button head.