Why are ePub content files, which (as I understand) are to be interpreted as XHTML, saved with a .html file extension? I realize that they are interpreted correctly by readers in accordance with their mime type (application/xhtml+xml) which is stored in the book's manifest. My question is why are they not given their correct file extension, so that if I were to double click the file it would be displayed appropriately as XHTML and not as HTML.

This ePub: The Metamorphosis, by Franz Kafka (Jackson Theme) is an example. Thanks

  • Why are epub .xhtml files saved as .html? – What exactly do you mean by are saved? By some app? It would help to describe your workflow a bit. If you mean by the PressBooks app, you could ask their devs. Apr 17, 2018 at 7:15
  • I think the xhtml extension is just optional and not mandatory for xhtml files (they are simply html coded according to XML standards). However, it is more common to use the extension inside ePubs. Apr 17, 2018 at 7:21


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.