W3C Amaya

previous top next

Numbering Sections

Section headings (H2toH6 elements) can be automatically numbered to reflect the document structure. The H1 element is supposed to be the document title and is not numbered. Other headings receive a number that is computed according to their type and their position in the document structure. These numbers are generated in the document itself and previous generated numbers are removed, each times the XHTML>Section numbering command is called.

Table of Contents

The XHTML>Generate Table of contents command collects all following H2toH6 elements in the document to generate a table of contents at the current position.

This command adds: