How to write titles of books in essays

When writing titles of books in essays, italicize the title of the book. For example, in the sentence, “I read The Catcher in the Rye by J.D. Salinger,” the title of the book is italicized.