View Single Post
Old 05-20-2014, 10:19 AM   #1
Derek R
Zealot
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
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?
Derek R is offline   Reply With Quote