Quote:
Originally Posted by hobnail
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.