It works, there's no practical difference, but if some renderer does not obey "visibility" or "overflow", the difference is that the will still be invisible, while the text won't.
Anyway, my preferred solution is to add the "id" to the <p> or <div> and completely removed the <h2>. That's perfectly OK with the final book, but it will break Sigil's automatic TOC generation.
|