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.

When writing the names of songs and albums, it is customary to follow certain formatting conventions. Here's a general guideline:

1. Song titles: Enclose the name of the song within quotation marks (" ").
For example: "Bohemian Rhapsody" by Queen.

2. Album titles: Italicize or underline the name of the album.
For example: The album "Thriller" by Michael Jackson.

3. Capitalization: Capitalize the main words in both the song and album titles. This includes nouns, verbs, adjectives, and adverbs. Articles (such as "the" or "a"), conjunctions (like "and" or "but"), and short prepositions (such as "in" or "on") are generally not capitalized unless they are the first or last word.

For example:
- Song title: "Rolling in the Deep" by Adele
- Album title: "Dark Side of the Moon" by Pink Floyd

It's worth noting that specific style guides might have slightly different rules regarding capitalization and formatting, so if you're writing for a particular publication or audience, it's best to consult the appropriate style guide.