RNA also contains different bases to DNA . RNA is made within living cells by RNA polymerases , enzymes that act to copy a DNA or RNA template into a new RNA strand through processes known as transcription or RNA replication , respectively . RNA and DNA are both nucleic acids , but differ in three main ways .