Statement 1: Plants absorb nitrogen mostly from the air.
Statement 2: Air contains mostly nitrogen as its component.
Only Statement 2 is correct.
Even though nitrogen makes up most of the air around us, plants cannot use nitrogen in this form as it is unreactive. Nitrogen has to be absorbed in the form of salts from the soil. This absorption happens via the roots of the plant.