Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9203871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:34:10+00:00 2026-06-17T23:34:10+00:00

Is it possible to display epub format books in web browser using pure HTML5,

  • 0

Is it possible to display epub format books in web browser using pure HTML5, CSS and Jquery? Could anybody please suggest how do I do this? I have to also make this responsive to be able to make it work on iPad. I know that but I don’t know how do I read the epub using HTML and Javascript.

The epub may contain some mathematical functions and I need to display them properly too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:34:11+00:00Added an answer on June 17, 2026 at 11:34 pm

    Is it possible to display epub format books in web browser using pure HTML5, CSS and jQuery?

    Yes, it is possible.

    Why do you want to write an epub reader? There are already many out there.

    In any case, your question is a specific form of the generic question, is is possible to write an an ebook reader for epubs? Obviously, yes it is, may have been written. If you can write it in one language or for one platform, you can write it in or for another.

    But actually, you don’t even need to write a reader, since epubs are just little websites in a can. Unzip the epub file somewhere on your server, and navigate the browser to one of the pages. Voila, you’re reading. You want a table of contents? Navigate to the toc.xhtml or equivalent file and there you go.

    What about moving from one page to the next? You’ll need to know what order the pages are supposed to be displayed in. Write a small server component which parses the file normally called content.opf, and based on the order of the files in the manifest element, emit some HTML which has a forward and back button and an iframe to show the content. While you’re at it, parse out the title and other interesting metadata. All this is essentially what epubjs does.

    But I intuit from your question that you want to do this entirely on the client/browser side. Well, that too has already been done, in the form of Readium, which you should take a look at. Use your favorite JS unzipping library (warning, can be slow) to unzip the epub file, and write a bit of JS to parse the metadata and throw up the pages, again most likely in iframes with some chrome around them.

    But what if you want paginated output, which people have come to expect from ebook readers? This is where things start to get hairy, and is probably a good place to step back and ask yourself once again why you’re doing this. Anyway, if you decide you really want paginated display, then you’re going to need to figure out some combination of logic involving windowing, framing, clipping, offsetting, and/or using “regions” to help you here. Some ebook readers just punt here, and say, what’s wrong with scrolled/unpaginated output anyway?

    But ebook readers do many other things. For instance, most would allow you to change line spacing, or margins, or font sizes. How do these user settings interact with the styling in the book’s CSS files? Some readers take the approach of parsing the CSS (there are libraries for that too) and rewrite it to get the results you or your user wants.

    Prefer an app instead of a browser app? Wrap the whole shebang in PhoneGap.

    You’re going to have to worry about many, many other things to make a competent reader. Just off the top of my head, that includes displaying the “guide” or “landmarks” some books specify, remembering reading location and user options from session to session, and probably providing some kind of bookshelf functionality.

    Although some client-side ebook readers do use jQuery, keep in mind that since epubs are HTML5/CSS2.5/JS, the content itself can only be reliably displayed by a modern browser. But if you have a modern browser, you don’t need 90% of the hair in jQuery which is designed for cross-browser compatibility. You’d be better off with more lightweight components, such as Backbone and/or Underscore. You probably don’t even need a selector library, since you’ll have querySelector.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible to display an image outside of textbox with CSS only? Please
Is it possible to display 1000.99 as 1,000.99 using [NSString stringWithFormat:@£%0.2f, 1000.99] Please guide
Very simple question: Is it possible to display a var in .html, using jQuery?
Is possible to display two forms using the Compact Framework (Windows Mobile 6.1), where
Possible Duplicate: Display two decimal places, no rounding I need to format the total
Is it possible to display a web applet inside a java application's window? It
Is it possible to display a shadow inside a div box without using pictures?
Is it possible to display the log messages (which I print using android.util.Log )
Is it possible to display local times to users without using Javascript when you
Is it possible to display an irregularly shaped Modal view using presentModalViewController ? The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.