11-07-2010, 08:11 AM | #1 |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
Best source for learning HTML & CSS
I have absolutely no practical experience with HTML or any other programming and was wondering if anyone could recommend a source (application, book, forum, tutorial etc.) to learn the fundamentals that will help me to produce properly formatted or re-formatted books, specifically ePub.
I have an extensive collection of PDF and other books that need considerable rehashing to get them into what I consider readable form that can't be accomplished by simple conversion in calibre. The main problems are books that have been converted multiple times in different formats and books that have been OCR'd to plain text. I would also like to generate my own original works in clean ePub format. I guess the questions I need answered are: 1. Is learning certain elements of HTML and CSS what I need to accomplish the tasks I have set myself? (Correcting or setting page and paragraph lay-out, TOC, images, tables) 2. What elements should I concentrate on? 3. Where are good sources for studying these elements? 4. Am I asking the correct questions? In my mind I imagine the process as: converting books to ePub using calibre, exploding the book, loading it Notepad++ (or similar), using my newly acquired skills to reformat the book appropriately, re-combining the book and loading it onto my Kobo for hours of frustration free fun Regards |
11-07-2010, 10:24 AM | #2 | |
Well trained by Cats
Posts: 29,932
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
My technique (for EPUB) was find some books that I found the style and layout pleasant to read. Reverse engineer it. By that, I mean find a Paragraph or other section you like , then find the code (source and CSS) involved and figure what does what. Calibre does really clean, simple code when converting ASCII txt. There are no 'tricks' in use. No italics.... Simple. For some decent examples, Baen Free Library EPUB for no frills, with basic styling (has a very good chance to work on most devices). Documents converted from Word seem to have the messiest code and style sheets and should only be used to learn how not to code things Remember this about HTML code, If it works, it is not done wrong (in may only be a less elegant solution to the coding problem ) I use the Standards References from W3.org for syntax guidance. One other tip. Don't code to a specific reading device. Test your work on various devices and programs...At different Zoom levels. You may have to make compromises in your code to accommodate the deficiencies of some devices. |
|
Advert | |
|
11-07-2010, 11:02 AM | #3 | |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
Quote:
Good point. Just because I use a Kobo now doesn't mean down the track I might not find something else more appropriate. |
|
11-07-2010, 12:49 PM | #4 |
Curmudgeon
Posts: 3,085
Karma: 722357
Join Date: Feb 2010
Device: PRS-505
|
I'm on the more technical side here (I hand-code websites) so my HTML suggestions are W3 Schools (free website full of wonderful things) and O'Reilly's ebooks (very affordable if you get them on sale). If you're a tech geek like me, they're wonderful. If you're not, they're scary. YMMV.
|
11-07-2010, 05:26 PM | #5 | |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
Funny you should mention that...
Quote:
W3Schools was one of the first websites I came upon that made me feel like I had a hope I found a couple of tables I thought I might print out to keep at hand also with common tags. The real issue is knowing what to bother with and I think theducks suggestion of reverse engineering will go a long way towards giving me a basis of at least where to start. |
|
Advert | |
|
11-07-2010, 06:27 PM | #6 |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
In several posts I have read that calibre uses XHTML and not HTML. Is this true and what is the impact on this particular discussion?
|
11-07-2010, 09:41 PM | #7 | |
Well trained by Cats
Posts: 29,932
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
For our purposes, the Declarations In the Document Headers (Not Body Headings). If you start Editing with Sigil, it puts the boilerplate stuff in place for every new (blank) page created. Sigil will also create your TOC based upon headers. Nothing say you you can't use a combination of tools to create your masterpiece |
|
11-08-2010, 12:02 AM | #8 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Reverse Engineering seems to be easier, I agree with theducks - most html/css tutorials are aimed more at webmasters. Much of what's applicable to web is not applicable to epub.
The layout of a typical book is pretty straightforward. I suggest you try to find sources that haven't been converted by Calibre - not to say that there is anything wrong with Calibre, it's just that Calibre converted HTML has a specific signature - specifically naming all the different CSS styles based on it's own normalization rules. If you find original good sources then the css styles typically have meaningful names that help you understand how the book was layed out. xhtml is html - the difference is that xhtml must be 'perfect' in terms of opening and closing every tag. HTML spec is more relaxed. If you're editing stuff by hand you don't need to worry too much about xhtml - it's definitely good practice to close your own tags, but tools like Calibre/Sigil will constantly clean up after you when you make mistakes. |
11-08-2010, 02:49 AM | #10 | |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Regards, Alex |
|
11-08-2010, 08:06 AM | #11 |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
Squeals like a 13 year old at a Justin Beiber concert..
|
11-08-2010, 08:14 AM | #12 | |||
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
Quote:
Quote:
Quote:
I've downloaded sigil but have been reluctant to use it just because it's another program with a learning curve. |
|||
11-08-2010, 09:33 AM | #13 | |
Well trained by Cats
Posts: 29,932
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I di mention a source. Baen Free Library: 100% Legal, with the Publishers blessing http://www.baen.com/library/ (and chortling, cuz they got another book lover addicted to Baen publihed works. [was that way, before the free Library introduced me to different Authors that I did not have. Grrrr.]) |
|
11-08-2010, 12:08 PM | #14 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
A lot of the Gutenberg books are pretty good - as long as you ignore the horribly ugly introduction/licensing pages that Gutenberg forces to be included at the beginning of the book. I would say the Gutenberg content is good examples of how to write an html ebook, not neccessarily brilliant examples of how to create epubs in terms of where they are split, TOCs, etc.
Many of the contributors of epub books on the Mobileread ebook subforum are submitting really good example books. |
11-08-2010, 02:45 PM | #15 | |
Connoisseur
Posts: 86
Karma: 24
Join Date: Aug 2009
Device: Kobo/Tablet PC/Desktop/Laptop
|
So you did!
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML/CSS for (German) s p a c e d o u t emphasis | frabjous | Workshop | 21 | 05-16-2011 04:52 PM |
Small html/css bug | twaits | Calibre | 5 | 01-12-2010 10:26 AM |
HTML and CSS for Dummies | weedfreak | Sigil | 17 | 01-07-2010 09:34 PM |
Problems generating ePub from HTML/CSS | AlexBell | Calibre | 3 | 07-17-2009 05:10 AM |
Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 04:55 PM |