Workshop
The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.
Quiz
True or False: Symbols allow you to reuse the same piece of artwork multiple times in one document.
Which element is used to store a series of symbols and other referential items?
For an object to be referenced as a symbol by the use element, what attribute must it have defined?
True or False: The use element cannot accept the style attribute.
True or False: Symbols can reside within other symbols.
Answers
True. A symbol can be referenced indefinitely within a document, creating as many duplicates of the symbol as there are references for it in the document.
The defs element is used to harbor symbols and other content to be referenced in an SVG document.
The use element requires an symbol to be named via the id attribute so that its xlink:href attribute can specify a specific item.
False. SVG symbols can accept radically different appearances because their referencing agent (the use element) can accept additional visual information through the style attribute.
True. Yet another powerful aspect of the SVG symbol is its ability to use other symbols within itself. By using a symbol within a symbol (within a symbol, and so on), you can create a very modular design that is easy to update quickly.