The Table of Contents
Headings become the table of contents automatically. The first-level heading in each file is the chapter title. A second- or third-level heading inside a chapter is nested under that chapter, so a reader can jump to a section as well as to the start of the chapter.
Chapter titles versus file names
The file name is only the order and identity of the source. It does not have to match the heading. In this sample, the third file is named 03-the-table-of-contents.html, but the chapter title in the ebook is “The Table of Contents,” taken from the heading (and the HTML title if needed). The book title on the form names the whole ebook, not every chapter.
Checking the result
After conversion you should see one EPUB, not three. Open the table of contents in any EPUB reader and you should find the three chapter titles in the same order as the files, with the section headings from this chapter listed underneath. The public sample page for this book also includes the EPUBCheck report for the exact file you can download.