Quote:
Originally Posted by JLius
In the CSS of my epubs, I didn't set font-size for headings (h1,h2,h3). When h1 was too big for the chapter heading, I just used h2.
Is this good practice? Or should I always set a font-size for the headings in my css?
|
You should never choose your tags based on how they look, but on what they mean (except for working around bugs and limitations, maybe), and then alter the looks with CSS.
That said, there's a bit of leeway in what <h1> means. Is it for the book title? For parts, even if there are no parts?... Personally, I often use <h1> for chapters, and if there are parts, I use <h1 class="part"> or something like that.
The default depends on the application (and sometimes even user settings), so no, those are at the most common defaults, but you shouldn't rely on them.