Q&A

Q1: I am familiar with Flash's symbol library. How does SVG's concept of a symbol differ from Flash's?
A1: Actually, SVG's handling of symbols is very similar to Flash's. Conceptually, the two handle symbols the same. In Flash, an item is stored in a library by converting it into a symbol and is then visually stored in a separate library palette. In SVG, a symbol is also removed from the artwork content by placing it within a defs or symbol element.

SVG offers an advantage in terms of its ability to apply considerable amounts of style information to the instance of a symbol. Although Flash allows certain adjustments to be made to a symbol (such as opacity and overall color), SVG can pass any style rule on to a symbol via the use element. ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.