They both contain nitrogenous bases.
DNA genomes are stable and can grow to much larger sizes (other viruses and all organisms larger than them). They are both nucleic acids. Regarding structure, DNA and RNA are similar because they are both built of nucleotides, structures consisting of one nuclease, a sugar (ribose or deoxyribose respectively) and a phosphate group.