Nucleosides form the subunit of nucleic acids such as DNA and RNA and are hence found in both RNA and DNA. Nucleosides give rise to nucleotides which are the building blocks of DNA and RNA.