The difference between Screws

Why are there two types of screws? Flat-head and Phillips?