Which type of biological macromolecule contains carbon, hydrogen, oxygen, and sometimes phosphorus?

A. Lipids
B. Nucleic acid
C. Carbohydrates
D. Proteins