Carbohydrates and lipids are both made up of carbon, hydrogen, and oxygen. Carbohydrates are composed of monosaccharides that can bond to form disaccharides or polysaccharides. They serve as energy sources and structure. Lipids are made of fatty acid subunits that form triglycerides for energy storage or phospholipids that make up cell membranes. Both play important structural and energy-related roles in the body.