r/HTML • u/DontKnowWhat0 • Oct 26 '26
Discussion Best way to render book in web
With pages support.
Options right now:
- Markdown (
.md,.mdx) - HTMLBook
- EPUB3
EDIT: I meant to render the books like their printed edition, preserving pages
1
Upvotes
5
u/tomtomato0414 Oct 26 '26
Epub is HTML+CSS
What is the question?
3
u/JeLuF Oct 26 '26
What shall a "page" be?
Shall a "page" be the content of a single browser screen, without scrolling?
Shall a "page" reflect the pages from the printed edition?
Shall a "page" be a section, chapter, or subchapter?
2
u/armahillo Expert Oct 26 '26
This says nothing about how the viewer is consuming the book.
The best way to render it in Web would be the way the web was built to handle it: one document per chapter, a main index that shows the table of contents, and each page has links to the previous and next chapters.
But people dont typically consume books through web browsers. So I’m assuming you mean something different; you’ll need to specify that
1
u/UpbeatLemon3022 Oct 27 '26
EPUB3 supports fixed-layout, which is meant for page-accurate rendering like printed books, but browser support is spotty unless you use a JS EPUB viewer like epub.js. HTMLBook is easier for direct web use but less precise on pagination.