How it works
If you want a chapter heading, subtitle, or outline level to automatically appear in the table of contents, format it with a built-in heading style. Office Word 2007 assembles a table by searching for text with those styles. At any time, you can change headings, add or remove pages, or move content around in the document, and Office Word 2007 will reassemble the table of contents when you run the Update Table command.
For printed documents, Office Word 2007 automatically inserts page numbers next to entries in the table of contents. If you create a document for the Web, you can switch from Print Layout view to Web Layout view and the entries become hyperlinks making navigation through a document much easier. Save your document as a Web page, and the table of contents links are available when you open the page in a browser.