EPUB
EPUB
38 languages
• Article
• Talk
• Read
• Edit
• View history
Tools
Appearance
hide
Text
Small
Standard
Large
Width
Standard
Wide
Color (beta)
Automatic
Light
Dark
Filename .epub
extension
Internet application/epub+zip
media type
Website w3.org/epub3
EPUB is an e-book file format that uses the ".epub" file extension. The term is short
for electronic publication and is sometimes stylized as ePUB. EPUB is supported by many e-
readers, and compatible software is available for most smartphones, tablets, and computers.
EPUB is a technical standard published by the International Digital Publishing Forum (IDPF). It
became an official standard of the IDPF in September 2007, superseding the older Open
eBook (OEB) standard.[2]
The Book Industry Study Group endorses EPUB 3 as the format of choice for packaging content
and has stated that the global book publishing industry should rally around a single
standard.[3] Technically, a file in the EPUB format is a ZIP archive file consisting of XHTML files
carrying the content, along with images and other supporting files. EPUB is the most widely
supported vendor-independent XML-based e-book format; it is supported by almost all
hardware readers and many software readers and mobile apps.[4]
History
[edit]
A successor to the Open eBook Publication Structure, EPUB 2.0 was approved in October
2007,[5] with a maintenance update (2.0.1) approved in September 2010.[6]
The EPUB 3.0 specification became effective in October 2011, superseded by a minor
maintenance update (3.0.1) in June 2014.[7] New major features include support for precise
layout or specialized formatting (Fixed Layout Documents), such as for comic
books,[8] and MathML support. The current version of EPUB is 3.2, effective May 8, 2019.[9] The
(text of) format specification underwent reorganization[10] and clean-up; format supports
remotely hosted resources and new font formats (WOFF 2.0 and SFNT)[11] and uses more
pure HTML and CSS.[12]
In May 2016 IDPF members approved World Wide Web Consortium (W3C) merger,[13] "to fully
align the publishing industry and core Web technology".[14]
Version 2.0.1
[edit]
EPUB 2.0 was approved in October 2007, with a maintenance update (2.0.1) intended to clarify
and correct errata in the specifications being approved in September 2010.[6] EPUB version 2.0.1
consists of three specifications:
• Open Publication Structure (OPS) 2.0.1, contains the formatting of its content.[15]
• Open Packaging Format (OPF) 2.0.1, describes the structure of the .epub file in XML.[16]
• Open Container Format (OCF) 2.0.1, collects all files as a ZIP archive.[17]
EPUB internally uses XHTML or DTBook (an XML standard provided by the DAISY Consortium) to
represent the text and structure of the content document, and a subset of CSS to provide layout
and formatting. XML is used to create the document manifest, table of contents, and
EPUB metadata. Finally, the files are bundled in a zip file as a packaging format.
[edit]
An EPUB file uses XHTML 1.1 (or DTBook) to construct the content of a book as of version 2.0.1.
This is different from previous versions (OEBPS 1.2 and earlier), which used a subset of XHTML.
There are, however, a few restrictions on certain elements. The mimetype for XHTML
documents in EPUB is application/xhtml+xml.[15][a]
Styling and layout are performed using a subset of CSS 2.0, referred to as OPS Style Sheets. This
specialized syntax requires that reading systems support only a portion of CSS properties and
adds a few custom properties. Custom properties include oeb-page-head, oeb-page-
foot, and oeb-column-number. Font-embedding can be accomplished using the @font-
face property, as well as including the font file in the OPF's manifest (see below).
The mimetype for CSS documents in EPUB is text/css.[15][b]
EPUB also requires that PNG, JPEG, GIF, and SVG images be supported using
the mimetypes image/png, image/jpeg, image/gif, image/svg+xml. Other media types are
allowed, but creators must include alternative renditions using supported types.[15] For a table
of all required mimetypes, see Section 1.3.7 of the specification.