The basic building blocks of DNA and RNA are
DNA: sugar groups, phosphate groups, and nitrogen bases; the bases are adenine, cytosine, thymine, and guanine
RNA: sugar groups, phosphate groups, and nitrogen bases; the bases are adenine, cytosine, uracil (replacement for thymine), and guanine