A triplet is also known as a codon, which is a sequence of three nucleotides in DNA or RNA that codes for a specific amino acid.