O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

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

Summary

Proper syntax and structure are critical for creating an SVG document that can be displayed correctly. Remembering to close all your tags, use the proper case, and quote your attribute values will help reduce the amount of errors you'll inevitably face when beginning to learn SVG. Paying attention to the ordering of your code can also explain mysterious disappearances of your artwork, as display order is hinged on code order. Lastly, be sure to include the XML declaration and DTD information. Although many viewers can display your document without this information, this approach is short sighted. Some viewers allow this, but some don't, and future viewers may not be so forgiving; code once correctly and you won't need to revise all 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