See
Requirements for HTML Output
The EPUB format must be compliant with
EPUB 3