The book Using SVG with CSS3 and HTML5 is a guide to scalable vector graphics in web sites: how they should work, how they do work, and how to work around the parts that don't work.
It's a big topic, and we couldn't fit everything we wanted to say in the book. This website compiles this additional material, while also making it easier to explore the code we used for the examples and figures.
Read more about the book on the O’Reilly Media catalogue page. E-books and paper copies can be purchased from most retailers of technical books (or books in general); it is also included in O’Reilly's Safari online subscription service.
The files are covered by the O’Reilly Media policy on the use of example code. Short version: you are free to use the examples in moderation; credit is appreciated but not required. However, please don't integrate a large portion of the example set within a product or documentation. All the fonts and some image files are content owned by others; see the credits in the book—most are public domain or Creative Commons-licenced.
If you notice a problem, file a GitHub issue or ping Amelia on Twitter.
Chapters#
Read a summary of each chapter, and find the code for each example and figure:
-
Part I: SVG on the Web
-
Part II. Drawing with Markup
-
Part III. Putting Graphics in Their Place
-
Part IV. Artistic Touches
-
Part V. SVG as an Application
SVG Reference Guides#
Quick references to SVG syntax:
- SVG Elements and Attributes
- SVG Style Properties
- Embedding SVG in HTML
- Select SVG DOM Methods and Objects
- Units for Measurements
- Path commands
- Transform Functions
- CSS Shape Functions
- Shorthand Filter Functions
- Blend Modes
Extra Articles and Examples#
Additional tutorials and explanations that we couldn't fit in the book are in the Online Extras section; they are also listed in the relevant chapter pages.
About the Authors#
Where to find out more about what we do:
Amelia Bellamy-Royds writes about web development, contributes to web standards creation, and sometimes even builds websites.
- Twitter @AmeliasBrain
- CodePen @AmeliaBR
Kurt Cagle works as a data architect, with an interest in data semantics (structured meaning) and machine learning.
- Twitter @kurt_cagle
Dudley Storey teaches college students how to build websites, and shares his examples and tutorials with other web developers through his website, The New Code.
- theNewCode.com
- Twitter @dudleystorey