These are the code examples from my book, The Modern Web. They'll be kept updated as the technology progresses. Please feel free to fork and modify as you see fit.
Note that the exact markup and style of some demos may differ from the examples in the book, but the underlying concepts remain unchanged.