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.
What is the term used to describe a CSS class's label?
Describe the components of a style declaration.
Style sheets are contained within what element?
What is the function of a CDATA section?
What does the author recommend naming class selectors according to?
A selector is the label used to reference a CSS class.
A style declaration is composed of a style property (such as stroke) and a style value (such as green) separated by a colon.
An internal style sheet is contained within a CDATA section, which is contained within a style element.
CDATA sections are used to prevent their contained content from being parsed as SVG by an SVG viewer. Nonetheless, CDATA's content must adhere to the XML syntax rules for the element. For more information on CDATA, see the W3School's example: http://www.w3schools.com/xml/xml_cdata.asp.
Naming selectors according to their declaration's function allows other developers the ability to discern the function of a class without needing to reference the style sheet.
Check out the W3C SVG recommendation and read chapter 6.4 about using XML presentation attributes to define style application. If you feel daring, revisit Listing 6.1 and apply the selected styles already in use via the XML method.
Review the possible style properties in the recommendation's Appendix N. Although Hour 7, "Painting," will discuss fills and strokes, there are a variety of other properties that can be applied to your artwork that won't be covered in this book.