Nucleic acids are macromolecules that are essential for all forms of life. They are composed of smaller units called nucleotides, which are made up of a sugar molecule, a phosphate group, and a nitrogenous base. There are two main types of nucleic acids: deoxyribonucleic acid (DNA) and ribonucleic acid (RNA).
DNA is composed of two strands that form a double helix structure, while RNA is usually single-stranded. The sugar in DNA is deoxyribose, while in RNA it is ribose. The nitrogenous bases in DNA are adenine (A), thymine (T), cytosine (C), and guanine (G), while in RNA, thymine is replaced by uracil (U).
DNA contains the genetic instructions for the development, functioning, growth, and reproduction of all known organisms. It is responsible for the inheritance of traits. RNA plays various roles in protein synthesis, including carrying the genetic information from DNA to the ribosomes, where proteins are synthesized.