There’s supposedly a variety of different spectroscopy methods but what drives the choice of one method over another? If elements drive the colors, how do you parse out individual elements from a compound?

Is there a consistent pattern to how the emission lines relate to what the element looks like before going through the prism? Is there a resource that shows examples of emission lines along with the visible color?