dna and rna are both types of?
The two main types of nucleic acids are DNA and RNA. Both DNA and RNA are made from nucleotides, each containing a five-carbon sugar backbone, a phosphate group, and a nitrogen base. DNA provides the code for the cell 's activities, while RNA converts that code into proteins to carry out cellular functions.