Expanding on what tex2002ans said, as another example, in the TOC I like to have the word Chapter in front of the chapter's number then a big dash then the chapter's title. So when it's all done my h2 tags look like the following
Code:
<h2 title="Chapter One — The place of Bruntisfield">One <span>The place of Bruntisfield</span></h2>
Then in the book there is no word Chapter, just the One. (For some reason it looks sort of bare not having the word Chapter in the TOC but in the book it seems redundant given that it's at the top of the page at the start of the chapter.) Then a blank line, then the chapter title. Moving the chapter title to its own line is done with some css on the span, specifically the display:block
Code:
h2 span, h1 span {
display: block;
font-size: larger;
font-style: italic;
/* overrides small-caps in 2nd .css file */
font-variant: normal;
font-weight: bold;
margin-top: 1.25em;
}
I have a bunch of search and replaces in sigil's Saved Searches that reformat the chapter titles from what I originally had, h2 contains the chapter number and h3 contains the chapter title.