A countersunk (flat head) screw has a cone-shaped head with a hex socket. In a hole that is countersunk to match, the head sits flush with the surface, so nothing catches on it. These are M3 x 20mm screws in 304 stainless steel, sold per screw.
The length is measured overall, from the flat top of the head to the tip, so the thread is about 18mm. A button head screw sold as M3x20 has the full 20mm of thread under its head, so the two are not interchangeable in a tight stack. The hole needs a 90 degree countersink, or the head will stand proud. For a head that sits on top instead, there is an M3x20 button head screw.
