basically all of life is encoded into genes and these genes go through transcription and translation which is DNA into RNA and RNA into proteins respectively. In the latter part is where the RNA gets encoded using the different amino acids and a codon is the coding part of the RNA sequence.