Nucleic acids, which include DNA and RNA, are polymers made of nucleotides comprised of a nitrogenous base, a pentose sugar, and a phosphate group. The structure includes purines (adenine and guanine) and pyrimidines (cytosine, thymine, and uracil), with base pairing stabilized by hydrogen bonds. DNA and RNA differ in the sugar component, with DNA containing deoxyribose and RNA containing ribose, and the strands of DNA are anti-parallel with a backbone formed by phosphodiester linkages.