A milliner or hatter designs, makes, trims, or sells hats.
Hat making is the manufacture of hats and headwear. Millinery is the designing and manufacture of hats. A millinery shop is a store that sells those goods.
More recently, the term milliner has evolved to describe a person who designs, makes, sells or trims hats primarily for a female clientele.