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

SVG and HTML

Many examples in this book have shown SVG images in isolation, with the images simply displayed on their own in a Web browser that has the Adobe SVG Viewer, in a dedicated SVG viewer such as Batik, or in a multi-namespace XML browser such as X-Smiles. In day-to-day use of SVG, one of the things you are likely to want to do routinely with an SVG image is to embed it in an HTML or XHTML Web page. In the first part of this chapter, you look at how that basic task is carried out.

Displaying an SVG image might seem to be a straightforward task, but if you are aiming to achieve cross-browser display, you need to consider several factors, as the following discussion explains.

In practice, you might well have multiple SVG images within ...

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