Basically, shampoo is not a detergent but it is a soap. Soap is defined as a cleansing agent that consists of an alkaline liquid, usually water, with some kind of detergent or surfactant dissolved in it. As for shampoo, it's made from a mixture of chemicals and plant extracts that are supposed to clean the hair and scalp by removing excess oils and dead skin cells.