Hour 6. Styling SVG

Leaving shapes as their default solid black objects is rarely the designer's intent. To solve this issue, you will need to apply style to your elements. Style allows a developer to add a variety of display properties to an element, thus massaging its default appearance to look as the designer intended.

In this hour, you will learn the following:

  • The syntax and application of the style attribute

  • How to create a style sheet

  • The difference between internal and external style sheets

  • How to organize your style sheet

By the time you finish this chapter, you will be able to move towards applying fills and strokes to your artwork (Hour 7). However, without the ability to apply style to your creation, any such beautifications would become ...

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.