Capitalizing titles of works

Capitalize most words in titles (of books, articles, plays, poems, songs, films, paintings, and so on). Do not capitalize an article (a, an, the), a preposition, a conjunction, or the to in an infinitive unless it is the first or last word in a title or subtitle.

Walt Whitman: A Life “The Gift of the Magi”
“As Time Goes By” Declaration of Independence
“Shooting an Elephant” Charlie and the Chocolate Factory
The Producers Rebel without a Cause