Here's the whole idea in one breath: a plant doesn't go looking for food — it makes its own, on the spot, out of a gas from the air, water, and the energy in sunlight. You eat to get food. A plant builds food. That single difference is the engine of nearly everything green on the planet.
Think About Where a Tree's Body Comes From
A gum tree starts as a seed the size of a grain of rice and ends up tonnes of solid wood. Nobody feeds it. It can't move. So where did all that stuff come from? Not really the soil — we'll come back to that surprise. The honest answer is that a plant pulls carbon dioxide out of the air and water up from the ground, and using the energy in sunlight it stitches them into a sugar called glucose — actual food, actual matter. The leaf is where it happens: a flat, green, sun-catching food-factory.
The One Secret: Leaves Are Solar Food-factories
The green in a leaf is a pigment called chlorophyll, and its job is to catch sunlight — to grab that light energy and put it to work. With that captured energy, the leaf takes in carbon dioxide and water and rearranges them into glucose, with oxygen left over and breathed back out. The whole thing, in plain words:
carbon dioxide + water --(light energy, captured by chlorophyll)--> glucose + oxygen
Read it left to right like a recipe: the ingredients (carbon dioxide, water) on the left, the light energy doing the cooking written over the arrow, and the products (glucose, oxygen) on the right. The glucose is the plant's food — its whole reason for the exercise. The oxygen is simply what's left over, and happily for us, it's exactly what we breathe.
Slide the three inputs up in the toy. Same little factory, but feed it more light, more carbon dioxide, more water and it makes more glucose and bubbles out more oxygen — the plant is quite literally building itself out of air, water and sunshine in front of you. That's the whole heart of this topic, and everything else is just learning to read it.