Re:You are not required to close your <p>, <li>, <img>, or <...
by pests on Sunday January 11, 2026 @10:33PM
(#46583752)
From a recent HN post, ePub's are technically XHTML by spec.
[ Parent
| on HN ]
Re:You are not required to close your <p>, <li>, <img>, or <...
by mgr86 on Monday January 12, 2026 @09:19AM
(#46588847)
Yes, that is an important point. I guess I was focused mainly on the browser. Which is not the typical way to consume epubs. But you are right that ePubs are essentially packaged XHTML.
Re:You are not required to close your <p>, <li>, <img>, or <...
by dragonwriter on Monday January 12, 2026 @01:57PM
(#46592641)
EPUB 3.x spec uses “XHTML” to refer to the XML serialization of HTML in the current WHATWG HTML living standard, not the separate historical standard from HTML known as XHTML.
The obsolete EPUB 2.x (and earlier, I believe) specs actually used XHTML (XHTML 1.1 in EPUB 2.x), though.