Dr. Mohta says that the best treatment for dandruff includes using over-the-counter or prescription-strength shampoos containing zinc pyrithione, selenium sulfide, ketoconazole, or salicylic acid. Regular shampooing with these products can reduce scalp flaking and irritation.