O'Reilly logo

Designing SVG Web Graphics by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Syntax

This chapter looks at how the source code of an SVG image is structured. All SVG images, which are also SVG documents or document fragments, are also XML-compliant documents.

If you don’t understand how XML syntax—and, therefore, SVG syntax—works, you can end up with endless frustration because an SVG viewer may not display any (or only parts) of your SVG image, if it isn’t properly structured. That isn’t surprising. Suppose that you are reading the instructions for the construction or configura-tion of a new gadget and you read, “Diggle the windlejump so that it is lineared upside the kindlespan.” What do you do, apart from uttering some bad words or throwing the gadget out the window? You are probably stuck. If you don’t structure your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required