View Single Post
Old 05-29-2015, 04:21 AM   #9
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Jellby View Post
You should not use <h1> and <h3> for the title page. They are intended for hierarchical headings (chapters, sections...) not for "large, bold and centered".

I think the title of a book is pretty high up the hierarchy of headings myself.
That's the reason it's "big and bold".


I don't like to just code everything as <p class="xyz">.

Marking them as H1 means they are correctly parsed as important by things like TOC generators.


I restyle them because I repeat the title on the next page, so they are the same except for alignment.

You have 6 levels of heading to use. The chapters can be H2. Or H4.
(As it happens, this book doesn't have any chapters.)
I'm not coding up legislation with 20 levels of headings.


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.


What matters is that it's simple, logical and it works.

Last edited by AlanHK; 05-29-2015 at 04:39 AM.
AlanHK is offline   Reply With Quote