In other words, I have to look up stuff in books, mess around with code examples, and try to puzzle out why I just wrote a function that completely blew up when I called it.
The clearer the how-to instructions and code examples, the better for my time-battered brain.
So, here is no surprise: I love the “Head First” series from O’Reilly. Its books introduce topics in amusing, easy-to-handle bites (and bytes) that are well illustrated and presented in orderly progressions. Typically, you create a simple project and spend the rest of the text learning how to add functions or features to it and improve its appearance and overall usability.
When I am in a mood to play for a few minutes or an hour or so, I enjoy opening a “Head First” volume. I can quickly teach my old-dog-self new tricks by working through a few of the examples and lighthearted explanations.
First published in 2005, Head First HTML and CSS has now been updated to cover HTML5. If you are a newcomer wanting to work with web pages or expand some basic web-page knowledge, Elisabeth Robson’s and Eric Freeman’s new 2nd edition is an excellent guide. It shows, step by step, how to create standards-based web pages using HTML5 and cascading style sheets (CSS).
Do not be intimidated by the book’s size (723 pages) and heft (nearly four pounds). It will get you off to a fast start learning basic Hyper Text Markup Language (HTML). Then it introduces each new topic in small steps, with plenty of screenshots, diagrams, notes, tips, exercises, and Q&A sessions to help you stay on track.
Here is how the book is organized:
- The Language of the Web: getting to know html
- Meet the “HT” in HTML: going further, with hypertext
- Web Page Construction: building blocks
- A Trip to Webville: getting connected
- Meeting the Media: adding images to your pages
- Serious HTML: standards and all that jazz
- Adding a Little Style: getting started with CSS
- Expanding your Vocabulary: styling with fonts and colors
- Getting Intimate with Elements: the box model
- Advanced Web Construction: divs and spans
- Arranging Elements: layout and positioning
- Modern HTML: html5 markup
- Getting Tabular: tables and more lists
- Getting Interactive: html forms
The authors introduce basic HTML before taking you into HTML5. And they deliberately advocate “a clean separation between the structure of your pages and the presentation of your pages.” They teach you “to use HTML for structure and CSS for style….” They also show you how to test your web pages using more than one browser, so you can learn how to create pages “that work well in a variety of them.”
They do not try to cover everything in their “brain-friendly guide.” They offer Head First HTML and CSS, 2nd Edition as “a learning experience, not a reference book.” (The book’s appendix, by the way, is titled “The Top Ten Topics (We Didn’t Cover): leftovers.” It focuses on more things you might want to consider and try.)
Once the authors have tossed you in head first and helped you develop a reasonably good feel for HTML5 and CSS, then you can go look for the fancy stuff.
You will have better notions of what to do with it once you have it.
– Si Dunn