Headers and footers run through the top and bottom of the pages in your document, providing important background information. They can include such items as page, chapter, or section numbers; title or heading text; the author’s name; and the document’s filename and creation or modification date.
You can add many of these items by using text variables. InDesign includes several preset variables, such as Creation Date and File Name. You can modify these variables, and you can create your own. For example, you can create a variable that displays the first use of a Heading paragraph style in the header or footer. Once you create or edit the variables you need, you assemble them on the master page to create your header and footer.
For a video on creating headers and footers, see www.adobe.com/go/vid0078.