Detergents are typically salts formed by the reaction of carboxylic acids or sulphonic acids with alkaline compounds like sodium hydroxide. These can also be alkyl hydrogen sulphates. Thus, the correct answer is (A), which covers both carboxylic acid-based and sulphonic acid-based detergents.