%brandDTD; ] >
In this section: Starting a New Page Formatting Your Web Pages Using Style Sheets to Style Your Web Pages Adding Tables to Your Web Page Adding Pictures (Images) to Your Web Page Working with Table of Contents on Your Web Page Working With Templates Setting Page Properties Creating Links in &brandShortName; Customizing &brandShortName;

## Working with Table of Contents on Your Web Page

### Adding Table of Contents to Your Web Page

For an html document having different sections, e.g. an article with sections and subsections and headings for each section and subsection, it becomes difficult to navigate if all the text is in a single file. To enable easy navigation of different sections, a Table of Contents (TOC) can be generated easily with &brandShortName;. To generate a TOC for an html document:

1. Use the html heading tags (h1, h2, h3, h4, h5, and h6) to label different levels of sections and subsections in the document. And save the document.
2. Click on Insert > Table of Contents and choose "Insert". The TOC window will appear.
3. Select the levels of headings used for differet sections and subsections in the document.
4. Click "OK" to build the TOC.

The TOC generated by default shows all entries as numbered and they are anchored links to respective sections. Unchecking the "Number all entries in table of contents" checkbox results in bulleted section entries. And checking "Make the table of contents read only" results in sections being simple text without anchors.

[ Return to beginning of section ]

### Updating or Removing Table of Contents

In case the document is changed to add more sections or subsections after building the TOC, it will not contain the new sections or subsections. To add the newly added sections and subsections, click on "Insert", then "Table of Contents" and choose "Update". The TOC will be updated to show the new entries.

To remove the TOC altogether, click on "Insert", then "Table of Contents" and choose "Remove". The TOC will be removed the html source will be cleaned automatically of any code added when TOC built.

[ Return to beginning of section ]

18 June 2005

Copyright © 2004-2005 Contributors to the Nvu Help Documentation Project.