Ok, so, I have a project I'm cooking up and one of the pages involves a random generator. I've found how to make one of those pretty easily but the problem is that all of the tutorials I've found just let me have text results, but I want to be able to have both text and images and- this is a little weird- have certain bits of text and some images determined with span class, so it can call to the stylesheet that's currently "active" (since the concept for this project prominently features a theme switcher) to find which names, images, text strings, etc. to display within the generated result. (Very sorry if this doesn't make any sense lol)
Apologies if this is extremely obvious to anyone who knows how to use Javascript since I most definitely do not, but... Is there a way to use HTML in the results that the generator can pick from?