Join Morten Rand-Hendriksen for an in-depth discussion in this video Add backwards compatibility with SVGeezy, part of Web Icons with SVG.
- [Voiceover] Treating SVGs like regular images…by placing them inside an image element…is by far the easiest method…for displaying SVGs on the web.…However, like I mentioned in the previous movie,…this method has a problem…when I comes to older browsers that do not support SVGs.…In those older browsers, in place of an SVG,…you'll just see a little red X indicating…there's an image here that is not being displayed.…So, to support these older browsers,…we need to figure out a way of swapping out this SVG…for some other supported image format, like a PNG,…in those older browsers.…
SVG is an XML-based method for instructing the browser to draw scalable vector graphics based on defined shapes and coordinates. The challenge with SVGs is they are not like other graphic files: Rather than a grid of pixels, they are code instructions interpreted by the browser on the fly. This poses some unique challenges and unique opportunities when it comes to implementation. In this course, you'll learn various methods to deploy SVG icons in webpages, each with its own use cases, benefits, and drawbacks. Morten Rand-Hendriksen shows how to insert individual SVG images, add SVGs as inline elements and SVG sprites via the command line, and automate SVGs with Grunticon. Plus, get tips on making your graphics backward-compatible and accessible, and using SVG icons in WordPress.
- SVG vs. icon fonts
- Getting existing SVG icons
- Creating your own icons
- Adding individual SVG icons to webpages
- Adding SVG as an inline element or background image
- Using external and inline SVG sprites
- Automating SVG generation with Grunticon
- Using SVG icons in WordPress