A nucleotide has three parts: a pentose sugar, a phosphate group and a nitrogenous base. DNA nucleotides contain deoxyribose and the bases A, T, C and G. RNA nucleotides contain ribose and have uracil in place of thymine. ATP is also a nucleotide: adenine, ribose and three phosphate groups.
DNA is a double helix of two polynucleotide strands. In each strand the nucleotides are joined by phosphodiester bonds. The two strands run in opposite directions (antiparallel) and are held together by hydrogen bonds between complementary bases.
In semi-conservative replication the strands separate and each one is a template, so every new molecule has one old strand and one new strand. mRNA is a single, unpaired strand.