Plants take the elements they need from the soil. When crops are harvested these elements are removed with them, so farmers add fertilisers to put the elements back and improve plant growth.
The three elements needed in the largest amounts are nitrogen (N), phosphorus (P) and potassium (K). A fertiliser that supplies all three is called an NPK fertiliser. Ammonium salts and nitrates are used as fertilisers because they contain nitrogen and dissolve in water, so plant roots can absorb them.
Questions often ask which elements a fertiliser supplies, or the percentage by mass of nitrogen in a compound, which you work out from its formula.