DNA contains the genetic code and is located in the cell nucleus. It is a double-stranded molecule made up of nucleotides with a sugar (deoxyribose), phosphate group, and nitrogenous base. DNA replicates via a semi-conservative process where each new DNA molecule contains one original and one new strand. RNA is a single-stranded copy of DNA that carries instructions from DNA in the nucleus to the cytoplasm. There are three main types of RNA: mRNA, tRNA, and rRNA, which help in protein synthesis by carrying amino acids and combining with ribosomes.