The formation of chemical compounds with the aid of radiant energy and light; formation of carbohydrates in the chlorophyll-containing tissues of plants exposed to light.