View Single Post
Old 11-03-2020, 06:49 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,080
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hobnail View Post
I suppose it could depend upon what you consider header material. For example, some books have a quote after the chapter title, or a few lines of a poem. Those I put inside the header tag along with the h2. I use it so that I get consistent spacing after the stuff at the top of the page. If you want to go buck wild with semantic tags there are also article, main, section, and others. For example download an epub 3 book from standardebooks.org; Ivanhoe is a good example. (They now call them Advanced epub, they used to call them epub3.)

https://standardebooks.org/ebooks/walter-scott/ivanhoe

https://www.w3schools.com/tags/tag_header.asp
But in ePub 2, I've never had an inconsistent chapter header/sub-header/quote/etc. You just make sure the CSS is correct. You don't need <header>. Just make sure <h2> is set in CSS for the chapter header is correct in CSS and that whatever classes you need to style the text before the main text is correct. Again, no need for <header>. What does <header> actually do that you cannot do in CSS with <h2>?

I've edited ePub 3 back to ePub 2 and the things removed didn't make one difference once I fixed the CSS.
JSWolf is online now   Reply With Quote