E-books are cited the exact same way as their print counterparts, but have the addition of a "media marker" at the end of the citation, such as Kindle edition, PDF e-book, Microsoft Reader e-book, CD-ROM, etc.
Books consulted online are also cited the same way as their print counterparts, but have the DOI or URL included at the end of the citation.
Full Note: