I did this 10 or so years ago when I taught an ebook course to elementary students.
We learned about ebooks, HTML, and they each write a short story, which was included in an ebook (and a physical book).
Pretty amazing the tools we have access to. Of course, now I would use typst instead of latex for the physical book part.