Unless directed otherwise by your instructor, when using MLA 8 Style for your paper, follow these steps for formatting your citations:
More detailed information about formatting is available at the Purdue Owl's MLA Works Cited Page: Basic Format
Due to some limitations on this guide's design, many of the examples do not use double spaces and hanging indents (they don't work well with responsive design). The color-coded images of citations, however, do citations with standard MLA style spacing and idents.
MLA makes a distinction between online books and eBooks:
Each is cited somewhat differently, although the core style elements still provide the basis for your citations.
Le Fanu, Joseph Sheridan. Carmilla. 1872. Project Gutenberg. www.gutenberg.org/files/10007/10007-h/10007-h.htm.
Bell, Nancy. We Are Not Amused: Failed Humor in Interaction, De Gruyter, 2015. ProQuest Ebook Central, https://ntserver1.wsulibs.wsu.edu:3447/lib/wsu/detail.action?docID=2035730.
Gay, Roxane. Hunger: A Memoir of (My) Body. EPUB, Harper, 2017.
Osawa, Yoshimi. “‘We Can Taste but Others Cannot’: Umami as an Exclusively Japanese Concept." Devouring Japan: Global Perspectives on Japanese Culinary Identity, Oxford UP, 2018. Oxford Scholarship Online. www.oxfordscholarship.com/view/10.1093/oso/9780190240400.001.0001/oso-9780190240400-chapter-7.
Henry, O. “The Fox in the Morning.” Cabbages and Kings, Doubleday, Page & Co., 1919, pp. 11-24. Google Books. www.books.google.com/books?id=zmcqAAAAYAAJ&dq=O.%20Henry&pg=PP10#v=onepage&q=O.%20Henry&f=false.
Bottigheimer, Ruth B. “A New History.” Fairy Tales: A New History. EPUB, Excelsior Editions/State U of New York P, 2009, pp. 103-15.