Skip to Main Content
SVG for Web Developers
book

SVG for Web Developers

by Ellen Pearlman, Lorien House
December 2002
Beginner to intermediate content levelBeginner to intermediate
464 pages
8h 34m
English
Pearson
Content preview from SVG for Web Developers

Interactivity

These days on the Web, all the bells and whistles in the world don't matter if the user doesn't feel that he or she can control it somehow. The Internet has gone interactivity crazy. Well, SVG is no slouch in the interactivity department. Interactivity is possible using SVG alone or with scripting.

Linking

The simplest form of interactivity is the hyperlink. SVG provides this capability in the form of the <a> element (like the HTML <a> element). In SVG, use the <a> element with the xlink:href attribute to establish a link on an object. The linked object is nested within the <a> element. Example 9-10 shows an ellipse (with text saying click here) that contains a link to the animated gradient (animateGradient.svg) document that we ...

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.
Start your free trial

You might also like

Building Web Applications with SVG

Building Web Applications with SVG

Jon Frost David Dailey and Domenico Strazzullo
SVG Text Layout

SVG Text Layout

Amelia Bellamy-Royds, Kurt Cagle
Using SVG with CSS3 and HTML5

Using SVG with CSS3 and HTML5

Amelia Bellamy-Royds, Kurt Cagle, Dudley Storey

Publisher Resources

ISBN: 0131004999Purchase book