There are 2 types of dermatitis, irritant and allergic.
Irritant dermatitis is an immediate reaction to substances such as bleach or detergent, whereas allergic is a delayed reaction to an allergen, for example hair dye. This is why it is so important to have a patch test before any colour or in salon treatment to reduce the chances of contact dermatitis.