When writinng names of songs and albums which one do you capitalize and which do you underline?

The song you put into quotation marks, the album, you underline. You capitalize the main words in both.