Diet and lifestyle are two major factors that influence the health of the hair. Poor diet, illness and deficiencies of any particular vitamin and mineral affects the quality of hair and problems like dandruff, thinning hair, balding, premature graying etc.