Question: When typing, you italicize the title of a book; when writing, you underline titles of books...right? 

Answer: You don't have to do any of those. Italicizing and underlining are just ways of making a contrast between the title and the body.
This question from the Yahoo Q&A forum is categorized in the topic: Computers & Internet