Question: how table of contents works in word?
Answer: Word uses the headings in your document to build an automatic table of contents that can be updated when you change the heading text, sequence, or level. Click where you want to insert the table of contents – usually near the beginning of a document.