================================================
<!--content start-->
<!--headline start-->SVG Coding.<!--headline end-->
<!--body start-->
For the last few weeks I have been talking about SVG or
"Scalable Vector Graphics". The articles to date are
posted at: issue57top1.htm issue58top1.htm issue59top1.htm
In this final article in this series I will take a more
detailed look at the code itself.
SVG is not a small topic and cannot be dealt with
adequately with a few brief articles. It is still a
technology very much in its infancy with a lot of growing
pains to go through before its true impact can be
realized. The fact is, SVG will either become an important
topic for the majority of Web Designers or it will go the
way of VRML, another web format that held great promise
but never seemed to get the critical mass of supporters
needed to make it into the mainstream.
The two most likely factors that will determine the
success or failure of SVG is the distribution of a
sufficient number of players on enough machines and the
ease with which SVG enabled content can be created. The
distribution of SVG players is for most of us a wild card
that is beyond our control. If an SVG player were added to
Napster it would be a done deal (even if they don't
survive). Failing that, it will need a deal with
Microsoft, AOL, Adobe's full marketing skills, or a few
killer SVG enabled web sites and authoring programs to
make it fly.
Creating SVG content is a more addressable issue for web
content developers and authors. Just how easy or hard is
it?
SVG is an XML format. For those of you experienced with
HTML, the structure and logic will look very similar, as
will many of the tags. Like HTML 3.2 and later, SVG makes
extensive use of Style Sheets (CSS) to position elements
and define their properties. The fact is if you want to
create a page that looks very similar to your current HTML
web pages, you can probably come very close.
I have posted an example at iss62fig1.svg. As with all SVG
files at this time, you will need to install a Player in
order to view them. The one we have been using is
available from Adobe at: http://www.adobe.com/svg/viewer/install/
The first thing you will notice in this example is that
this page is not going to win any design awards. Competent
design and art is something that always transcends the
medium used to express it. Other than that it does look
like a very simplistic web page. If you try to view the
source however, you will discover that the View Source
button is not available. That is probably due to the fact
that the page is not being displayed by the browser but by
the player. To view the source, right click on the page
and select the view source from there.
Below you will find an extract from the source. The
missing portion is the XML version and Doctype. These are
pretty standard on all XML documents including HTML. I
briefly mentioned them in a previous issue so I will skip
over them here.