Carboxylic acids belong to a homologous series of organic compounds containing the carboxyl functional group (-COOH). They are weak acids that can react with bases to form salts, with reactive metals to form salts and hydrogen gas, and with carbonates to form salts, carbon dioxide and water. Ethanoic acid is an important carboxylic acid used to make vinegar. Esters are formed from a reaction between carboxylic acids and alcohols, and have a general formula of RCOOR'. Esters have sweet smells and flavors and are used in perfumes, foods, and solvents.