The graphic that is a document
Ordinarily, if you try and view the code of a graphics file in a text editor the resultant text is completely unintelligible.
Where SVG graphics differ is that they are actually described in a markup style language. SVG is written in Extensible Markup Language (XML), a close relative of HTML. Although you may not realize it, XML is actually everywhere on the Internet. Do you use an RSS reader? That's XML right there. XML is the language that wraps up the content of an RSS feed and makes it easily consumable to a variety of tools and services.
So not only can machines read and understand SVG graphics, but we can too.
Let me give you an example. Take a look at this star graphic:
This is an SVG graphic, called Star.svg ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access