The basic structure of nucleic acids (DNA and RNA) that, when linked together, form the building blocks of DNA or RNA. They are composed of a phosphate group, a nitrogenous base, and a sugar (deoxyribose or ribose). For all types of living organisms, there are four types of bases in DNA: adenine (A), guanine (G), cytosine (C) and thymine (T). Thymine is replaced by Uracil (U) in RNA.