View Single Post
Old 05-29-2015, 04:44 AM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,554
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by AlanHK View Post
I think the title of a book is pretty high up the hierarchy of headings myself.
The title, maybe, the author not.

But it's so high that it shouldn't be there at all. When a TOC is automatically generated, it will typically be extracted from the headings, and that will result in everything nested under the book's title, which is completely unnecessary and I personally find it quite annoying.

Quote:
That's the reason it's "big and bold".
Fine, but then you shouldn't be using <h1> elsewhere. Is anything else the same level as the book's title? If you use <h1> for the title, use <h2> or lower for the chapters.

Quote:
And the code is used once on one page.
Still, using <br/> for whitespace is bad style. For one thing, you can't easily modify the amount of space (just by changing the number of <br/>), and if you want to change it, you have to change the content (HTML), rather than the formatting (CSS), which is where all style changes should be done. Another problem is that the <br/>s can be selected and copy-pasted, and they break across pages.

Quote:
If I was doing 50 pages or 50 books the same style, then I might code it as CSS.
But it isn't and I don't like to clutter up the CSS file with a lot of one-offs.
Yet you clutter the HTML with <br/> tags and "style" attributes. My method is to create a special CSS file for the title page, so I keep the styling of the main text and the title page separate to a large extent.

Anyway, it's your book and your decision, do what you like best. I just wanted to give some advice of what is widely considered as good styling practice, and I believe most experienced book creators would agree that it pays off in the long run.
Jellby is offline   Reply With Quote