Are 'empty' heading tags acceptable for generating a table of contents?
I usually generate the table of contents from <h1> tags. However, there are occasions when I don't want headings displaying at the top of particular sections in an ebook. For instance, I would want to avoid having a heading appear above the frontispiece in the xhtml file that I have created for that image. Rather than have <h1>FRONTISPIECE</h1>, for example, is it acceptable to simply have <h1></h1> with nothing between the container tags and then edit the toc to include 'Frontispiece' as the section title? Or is it bad practice to use tags in this way and, if so, what is the best alternative?
|