Change Header and Footer Commands in Notepad - Microsoft Support
These commands give you the title of the document on the top of the page and a page number at the bottom of a printed document. These settings can't be saved, so all header and footer settings must be entered manually each time you want to print a document.