How do I set headers and footers?

Headers and footers make a document attractive and professional. You can include the document name, author's name and page numbers in header or footer.