All the living organisms are basically made of C, N, S, P, H and O

All the living organisms are basically made of C, N, S, P, H and O. How they enter the living forms?

The elements like C, N, S, P, H and O enter into living forms through plants. Most of these elements first enter plants either by photosynthesis or active absorption and form the structural components of organic materials. From plants, these elements pass on to other organisms through the food chain.